@agg-build/ui 2.1.0 → 2.1.2
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/{chunk-C5M2OOM3.mjs → chunk-5RBHMMY3.mjs} +1 -1
- package/dist/{chunk-YMVD6Q2A.mjs → chunk-75AMJAWR.mjs} +1 -1
- package/dist/{chunk-Y6PVXAUQ.mjs → chunk-7ZR5JYB3.mjs} +423 -488
- package/dist/{chunk-R6FBYAY5.mjs → chunk-JJDYOBVG.mjs} +117 -48
- package/dist/{chunk-3OI2ZLLT.mjs → chunk-NRNBJPYK.mjs} +1 -1
- package/dist/{chunk-DXF2LMNN.mjs → chunk-TBD3N4T4.mjs} +849 -759
- package/dist/{chunk-YAEA6EDG.mjs → chunk-ZOECARZW.mjs} +364 -17
- package/dist/events.js +1115 -972
- package/dist/events.mjs +3 -3
- package/dist/index.js +3705 -3278
- package/dist/index.mjs +16 -8
- package/dist/modals.js +851 -824
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +2778 -2357
- package/dist/pages.mjs +8 -6
- package/dist/primitives.js +849 -759
- package/dist/primitives.mjs +3 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +970 -599
- package/dist/trading.mjs +10 -6
- package/dist/types/events/shared/format-event-title.d.mts +25 -0
- package/dist/types/events/shared/format-event-title.d.ts +25 -0
- package/dist/types/events/shared/select-best-outcome.d.mts +88 -0
- package/dist/types/events/shared/select-best-outcome.d.ts +88 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +7 -0
- package/dist/types/pages/event-market/event-market.types.d.ts +7 -0
- package/dist/types/pages/user-profile/index.d.mts +1 -0
- package/dist/types/pages/user-profile/index.d.ts +1 -0
- package/dist/types/pages/user-profile/transaction-explorer.d.mts +1 -0
- package/dist/types/pages/user-profile/transaction-explorer.d.ts +1 -0
- package/dist/types/pages/user-profile/user-profile.types.d.mts +8 -2
- package/dist/types/pages/user-profile/user-profile.types.d.ts +8 -2
- package/dist/types/primitives/icon/index.d.mts +2 -1
- package/dist/types/primitives/icon/index.d.ts +2 -1
- package/dist/types/primitives/icon/registry.d.mts +4 -0
- package/dist/types/primitives/icon/registry.d.ts +4 -0
- package/dist/types/primitives/icon/svg/paper-mode.d.mts +5 -0
- package/dist/types/primitives/icon/svg/paper-mode.d.ts +5 -0
- package/dist/types/primitives/search/search.utils.d.mts +3 -1
- package/dist/types/primitives/search/search.utils.d.ts +3 -1
- package/dist/types/trading/index.d.mts +2 -0
- package/dist/types/trading/index.d.ts +2 -0
- package/dist/types/trading/place-order/index.d.mts +1 -1
- package/dist/types/trading/place-order/index.d.ts +1 -1
- package/dist/types/trading/place-order/index.place-order.types.d.mts +23 -1
- package/dist/types/trading/place-order/index.place-order.types.d.ts +23 -1
- package/dist/types/trading/use-claim-winnings.d.mts +84 -0
- package/dist/types/trading/use-claim-winnings.d.ts +84 -0
- package/dist/types/trading/use-resolved-market-claim.d.mts +26 -0
- package/dist/types/trading/use-resolved-market-claim.d.ts +26 -0
- package/package.json +3 -3
package/dist/trading.js
CHANGED
|
@@ -24,6 +24,7 @@ var __spreadValues = (a, b) => {
|
|
|
24
24
|
return a;
|
|
25
25
|
};
|
|
26
26
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
27
28
|
var __objRest = (source, exclude) => {
|
|
28
29
|
var target = {};
|
|
29
30
|
for (var prop in source)
|
|
@@ -99,7 +100,9 @@ __export(trading_exports, {
|
|
|
99
100
|
getTradingVenueLabel: () => getTradingVenueLabel,
|
|
100
101
|
parseAmount: () => parseAmount,
|
|
101
102
|
parseVenue: () => parseVenue,
|
|
102
|
-
|
|
103
|
+
useClaimWinnings: () => useClaimWinnings,
|
|
104
|
+
useEventTradingContext: () => import_hooks30.useEventTradingContext,
|
|
105
|
+
useResolvedMarketClaim: () => useResolvedMarketClaim
|
|
103
106
|
});
|
|
104
107
|
module.exports = __toCommonJS(trading_exports);
|
|
105
108
|
|
|
@@ -1205,9 +1208,9 @@ SettlementDetails.displayName = "SettlementDetails";
|
|
|
1205
1208
|
|
|
1206
1209
|
// src/trading/place-order/index.tsx
|
|
1207
1210
|
var import_hooks29 = require("@agg-build/hooks");
|
|
1208
|
-
var
|
|
1211
|
+
var import_react9 = __toESM(require("@number-flow/react"));
|
|
1209
1212
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
|
|
1210
|
-
var
|
|
1213
|
+
var import_react10 = require("react");
|
|
1211
1214
|
|
|
1212
1215
|
// src/events/market-details/market-details.utils.ts
|
|
1213
1216
|
var import_sdk12 = require("@agg-build/sdk");
|
|
@@ -3346,9 +3349,9 @@ var LockIcon = (_a) => {
|
|
|
3346
3349
|
};
|
|
3347
3350
|
LockIcon.displayName = "LockIcon";
|
|
3348
3351
|
|
|
3349
|
-
// src/primitives/icon/svg/
|
|
3352
|
+
// src/primitives/icon/svg/paper-mode.tsx
|
|
3350
3353
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3351
|
-
var
|
|
3354
|
+
var PaperModeIcon = (_a) => {
|
|
3352
3355
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3353
3356
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
3354
3357
|
"svg",
|
|
@@ -3359,14 +3362,42 @@ var PencilIcon = (_a) => {
|
|
|
3359
3362
|
}, getIconA11yProps(title2)), props), {
|
|
3360
3363
|
children: [
|
|
3361
3364
|
title2 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("title", { children: title2 }) : null,
|
|
3362
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("
|
|
3365
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { x: "2", y: "2", width: "12", height: "12", rx: "3", fill: "currentColor", opacity: "0.16" }),
|
|
3366
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3367
|
+
"path",
|
|
3368
|
+
{
|
|
3369
|
+
d: "M5 5.5C5 4.67157 5.67157 4 6.5 4H9.25C10.2165 4 11 4.7835 11 5.75C11 6.7165 10.2165 7.5 9.25 7.5H6.25V11H5V5.5ZM6.25 6.5H9.25C9.66421 6.5 10 6.16421 10 5.75C10 5.33579 9.66421 5 9.25 5H6.5C6.36193 5 6.25 5.11193 6.25 5.25V6.5Z",
|
|
3370
|
+
fill: "currentColor"
|
|
3371
|
+
}
|
|
3372
|
+
),
|
|
3373
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M6.25 9H10.25V10H6.25V9Z", fill: "currentColor", opacity: "0.72" })
|
|
3374
|
+
]
|
|
3375
|
+
})
|
|
3376
|
+
);
|
|
3377
|
+
};
|
|
3378
|
+
PaperModeIcon.displayName = "PaperModeIcon";
|
|
3379
|
+
|
|
3380
|
+
// src/primitives/icon/svg/pencil.tsx
|
|
3381
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3382
|
+
var PencilIcon = (_a) => {
|
|
3383
|
+
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
3385
|
+
"svg",
|
|
3386
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
3387
|
+
viewBox: "0 0 16 16",
|
|
3388
|
+
className,
|
|
3389
|
+
fill: "none"
|
|
3390
|
+
}, getIconA11yProps(title2)), props), {
|
|
3391
|
+
children: [
|
|
3392
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("title", { children: title2 }) : null,
|
|
3393
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("g", { clipPath: "url(#pencil_clip)", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3363
3394
|
"path",
|
|
3364
3395
|
{
|
|
3365
3396
|
d: "M15.2353 0.706709C14.7821 0.254173 14.1678 0 13.5273 0C12.8869 0 12.2726 0.254173 11.8193 0.706709L0.976677 11.5494C0.666178 11.8581 0.419985 12.2254 0.252342 12.6299C0.0846994 13.0344 -0.00106532 13.4682 9.98748e-06 13.906V15.2747C9.98748e-06 15.4515 0.0702479 15.6211 0.195272 15.7461C0.320296 15.8711 0.489866 15.9414 0.666677 15.9414H2.03534C2.47318 15.9426 2.90692 15.857 3.31145 15.6895C3.71597 15.5219 4.08325 15.2758 4.39201 14.9654L15.2353 4.12204C15.6877 3.66884 15.9417 3.05469 15.9417 2.41438C15.9417 1.77406 15.6877 1.15991 15.2353 0.706709ZM3.44934 14.0227C3.07335 14.3962 2.56532 14.6065 2.03534 14.608H1.33334V13.906C1.33267 13.6433 1.38411 13.3831 1.4847 13.1403C1.58529 12.8976 1.73302 12.6773 1.91934 12.492L10.148 4.26338L11.6813 5.79671L3.44934 14.0227ZM14.292 3.17938L12.6213 4.85071L11.088 3.32071L12.7593 1.64938C12.86 1.54891 12.9795 1.46927 13.111 1.41498C13.2424 1.3607 13.3833 1.33284 13.5255 1.33299C13.6678 1.33314 13.8086 1.36131 13.9399 1.41588C14.0712 1.47045 14.1905 1.55036 14.291 1.65104C14.3915 1.75172 14.4711 1.8712 14.5254 2.00266C14.5797 2.13413 14.6076 2.27499 14.6074 2.41722C14.6072 2.55945 14.5791 2.70025 14.5245 2.8316C14.4699 2.96294 14.39 3.08225 14.2893 3.18271L14.292 3.17938Z",
|
|
3366
3397
|
fill: "currentColor"
|
|
3367
3398
|
}
|
|
3368
3399
|
) }),
|
|
3369
|
-
/* @__PURE__ */ (0,
|
|
3400
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("clipPath", { id: "pencil_clip", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3370
3401
|
]
|
|
3371
3402
|
})
|
|
3372
3403
|
);
|
|
@@ -3374,10 +3405,10 @@ var PencilIcon = (_a) => {
|
|
|
3374
3405
|
PencilIcon.displayName = "PencilIcon";
|
|
3375
3406
|
|
|
3376
3407
|
// src/primitives/icon/svg/play-square.tsx
|
|
3377
|
-
var
|
|
3408
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3378
3409
|
var PlaySquareIcon = (_a) => {
|
|
3379
3410
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3380
|
-
return /* @__PURE__ */ (0,
|
|
3411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
3381
3412
|
"svg",
|
|
3382
3413
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3383
3414
|
viewBox: "0 0 16 16",
|
|
@@ -3385,15 +3416,15 @@ var PlaySquareIcon = (_a) => {
|
|
|
3385
3416
|
fill: "none"
|
|
3386
3417
|
}, getIconA11yProps(title2)), props), {
|
|
3387
3418
|
children: [
|
|
3388
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3389
|
-
/* @__PURE__ */ (0,
|
|
3419
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("title", { children: title2 }) : null,
|
|
3420
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("g", { clipPath: "url(#play-square-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3390
3421
|
"path",
|
|
3391
3422
|
{
|
|
3392
3423
|
d: "M12.6667 16H3.33333C2.4496 15.9989 1.60237 15.6474 0.97748 15.0225C0.352588 14.3976 0.00105857 13.5504 0 12.6667L0 3.33333C0.00105857 2.4496 0.352588 1.60237 0.97748 0.97748C1.60237 0.352588 2.4496 0.00105857 3.33333 0L12.6667 0C13.5504 0.00105857 14.3976 0.352588 15.0225 0.97748C15.6474 1.60237 15.9989 2.4496 16 3.33333V12.6667C15.9989 13.5504 15.6474 14.3976 15.0225 15.0225C14.3976 15.6474 13.5504 15.9989 12.6667 16ZM3.33333 1.33333C2.8029 1.33333 2.29419 1.54405 1.91912 1.91912C1.54405 2.29419 1.33333 2.8029 1.33333 3.33333V12.6667C1.33333 13.1971 1.54405 13.7058 1.91912 14.0809C2.29419 14.456 2.8029 14.6667 3.33333 14.6667H12.6667C13.1971 14.6667 13.7058 14.456 14.0809 14.0809C14.456 13.7058 14.6667 13.1971 14.6667 12.6667V3.33333C14.6667 2.8029 14.456 2.29419 14.0809 1.91912C13.7058 1.54405 13.1971 1.33333 12.6667 1.33333H3.33333ZM6.228 11.3367C5.95008 11.3357 5.67734 11.2615 5.43733 11.1213C5.20023 10.9856 5.00344 10.7894 4.86709 10.5526C4.73074 10.3159 4.65973 10.0472 4.66133 9.774V6.226C4.66111 5.95276 4.73274 5.68427 4.86905 5.44746C5.00537 5.21066 5.20156 5.01386 5.43794 4.87683C5.67433 4.73979 5.9426 4.66733 6.21584 4.66672C6.48907 4.6661 6.75767 4.73736 6.99467 4.87333L10.5133 6.63C10.7577 6.76194 10.9624 6.95685 11.1062 7.19452C11.2499 7.4322 11.3274 7.70399 11.3308 7.98172C11.3341 8.25946 11.2631 8.53303 11.1251 8.77408C10.9871 9.01514 10.7872 9.2149 10.546 9.35267L6.962 11.144C6.73847 11.2715 6.48533 11.3379 6.228 11.3367ZM6.21133 6.00333C6.17459 6.00332 6.13849 6.01298 6.10667 6.03133C6.07209 6.05056 6.0434 6.07884 6.02367 6.11313C6.00394 6.14743 5.99391 6.18644 5.99467 6.226V9.774C5.99489 9.81297 6.00525 9.85121 6.02473 9.88497C6.0442 9.91872 6.07212 9.94683 6.10574 9.96653C6.13936 9.98624 6.17753 9.99686 6.2165 9.99735C6.25547 9.99784 6.29389 9.98818 6.328 9.96933L9.912 8.17733C9.93869 8.15646 9.95992 8.12941 9.97385 8.09852C9.98779 8.06764 9.99401 8.03383 9.992 8C9.99284 7.96035 9.98277 7.92123 9.96291 7.8869C9.94304 7.85258 9.91413 7.82436 9.87933 7.80533L6.36333 6.04867C6.31749 6.02054 6.26509 6.00492 6.21133 6.00333Z",
|
|
3393
3424
|
fill: "currentColor"
|
|
3394
3425
|
}
|
|
3395
3426
|
) }),
|
|
3396
|
-
/* @__PURE__ */ (0,
|
|
3427
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("clipPath", { id: "play-square-clip", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3397
3428
|
]
|
|
3398
3429
|
})
|
|
3399
3430
|
);
|
|
@@ -3401,10 +3432,10 @@ var PlaySquareIcon = (_a) => {
|
|
|
3401
3432
|
PlaySquareIcon.displayName = "PlaySquareIcon";
|
|
3402
3433
|
|
|
3403
3434
|
// src/primitives/icon/svg/polygon.tsx
|
|
3404
|
-
var
|
|
3435
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3405
3436
|
var PolygonIcon = (_a) => {
|
|
3406
3437
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3407
|
-
return /* @__PURE__ */ (0,
|
|
3438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
3408
3439
|
"svg",
|
|
3409
3440
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3410
3441
|
viewBox: "0 0 24 24",
|
|
@@ -3412,9 +3443,9 @@ var PolygonIcon = (_a) => {
|
|
|
3412
3443
|
fill: "none"
|
|
3413
3444
|
}, getIconA11yProps(title2)), props), {
|
|
3414
3445
|
children: [
|
|
3415
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3416
|
-
/* @__PURE__ */ (0,
|
|
3417
|
-
/* @__PURE__ */ (0,
|
|
3446
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("title", { children: title2 }) : null,
|
|
3447
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("rect", { width: "24", height: "24", rx: "8", fill: "#8247E5" }),
|
|
3448
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3418
3449
|
"path",
|
|
3419
3450
|
{
|
|
3420
3451
|
d: "M9.00108 10.1467L7.12599 9.05774L1.5 12.3246V18.836L7.12599 22.0919L12.752 18.836V8.70922L15.8729 6.90135L18.9938 8.70922V12.3246L15.8729 14.1325L13.9978 13.0435V15.9409L15.8729 17.0299L21.4989 13.774V7.26264L15.8729 4.00674L10.2469 7.26264V17.3894L7.12599 19.1973L4.00508 17.3894V13.7628L7.12599 11.955L9.00108 13.0435V10.1467Z",
|
|
@@ -3428,10 +3459,10 @@ var PolygonIcon = (_a) => {
|
|
|
3428
3459
|
PolygonIcon.displayName = "PolygonIcon";
|
|
3429
3460
|
|
|
3430
3461
|
// src/primitives/icon/svg/quotes-warning.tsx
|
|
3431
|
-
var
|
|
3462
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3432
3463
|
var QuotesWarningIcon = (_a) => {
|
|
3433
3464
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3434
|
-
return /* @__PURE__ */ (0,
|
|
3465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
3435
3466
|
"svg",
|
|
3436
3467
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3437
3468
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3442,8 +3473,8 @@ var QuotesWarningIcon = (_a) => {
|
|
|
3442
3473
|
className
|
|
3443
3474
|
}, getIconA11yProps(title2)), props), {
|
|
3444
3475
|
children: [
|
|
3445
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3446
|
-
/* @__PURE__ */ (0,
|
|
3476
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("title", { children: title2 }) : null,
|
|
3477
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3447
3478
|
"path",
|
|
3448
3479
|
{
|
|
3449
3480
|
d: "M17.25 21.75V9.75C17.25 9.33 17.58 9 18 9C18.42 9 18.75 9.33 18.75 9.75V21.75C18.75 22.17 18.42 22.5 18 22.5C17.58 22.5 17.25 22.17 17.25 21.75ZM18 25.5C17.175 25.5 16.5 26.175 16.5 27C16.5 27.825 17.175 28.5 18 28.5C18.825 28.5 19.5 27.825 19.5 27C19.5 26.175 18.825 25.5 18 25.5ZM35.415 30.105C34.455 31.95 32.43 33 29.85 33H6.15002C3.58502 33 1.54502 31.95 0.585023 30.105C-0.389977 28.245 -0.119977 25.8 1.30502 23.745L13.95 3.645C14.88 2.295 16.395 1.5 18 1.5C19.605 1.5 21.12 2.295 22.035 3.615L34.695 23.76C36.12 25.815 36.39 28.245 35.415 30.105ZM33.45 24.6C33.45 24.6 33.45 24.585 33.435 24.57L20.79 4.44C20.16 3.525 19.14 3 18 3C16.86 3 15.84 3.54 15.195 4.47L2.56502 24.57C1.44002 26.19 1.20002 28.035 1.92002 29.415C2.62502 30.765 4.12502 31.5 6.15002 31.5H29.865C31.89 31.5 33.39 30.765 34.095 29.415C34.815 28.05 34.575 26.205 33.465 24.6H33.45Z",
|
|
@@ -3457,10 +3488,10 @@ var QuotesWarningIcon = (_a) => {
|
|
|
3457
3488
|
QuotesWarningIcon.displayName = "QuotesWarningIcon";
|
|
3458
3489
|
|
|
3459
3490
|
// src/primitives/icon/svg/profile-about-tab.tsx
|
|
3460
|
-
var
|
|
3491
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
3461
3492
|
var ProfileAboutTabIcon = (_a) => {
|
|
3462
3493
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3463
|
-
return /* @__PURE__ */ (0,
|
|
3494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
3464
3495
|
"svg",
|
|
3465
3496
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3466
3497
|
viewBox: "0 0 16 16",
|
|
@@ -3468,16 +3499,16 @@ var ProfileAboutTabIcon = (_a) => {
|
|
|
3468
3499
|
fill: "none"
|
|
3469
3500
|
}, getIconA11yProps(title2)), props), {
|
|
3470
3501
|
children: [
|
|
3471
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3472
|
-
/* @__PURE__ */ (0,
|
|
3473
|
-
/* @__PURE__ */ (0,
|
|
3502
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("title", { children: title2 }) : null,
|
|
3503
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("g", { clipPath: "url(#clip_profile_about_tab)", children: [
|
|
3504
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3474
3505
|
"path",
|
|
3475
3506
|
{
|
|
3476
3507
|
d: "M12.6667 0H3.33333C2.4496 0.00105857 1.60237 0.352588 0.97748 0.97748C0.352588 1.60237 0.00105857 2.4496 0 3.33333L0 12.6667C0.00105857 13.5504 0.352588 14.3976 0.97748 15.0225C1.60237 15.6474 2.4496 15.9989 3.33333 16H12.6667C13.5504 15.9989 14.3976 15.6474 15.0225 15.0225C15.6474 14.3976 15.9989 13.5504 16 12.6667V3.33333C15.9989 2.4496 15.6474 1.60237 15.0225 0.97748C14.3976 0.352588 13.5504 0.00105857 12.6667 0ZM4.66667 14.6667V14C4.66667 13.1159 5.01786 12.2681 5.64298 11.643C6.2681 11.0179 7.11595 10.6667 8 10.6667C8.88406 10.6667 9.7319 11.0179 10.357 11.643C10.9821 12.2681 11.3333 13.1159 11.3333 14V14.6667H4.66667ZM14.6667 12.6667C14.6667 13.1971 14.456 13.7058 14.0809 14.0809C13.7058 14.456 13.1971 14.6667 12.6667 14.6667V14C12.6667 12.7623 12.175 11.5753 11.2998 10.7002C10.4247 9.825 9.23768 9.33333 8 9.33333C6.76232 9.33333 5.57534 9.825 4.70017 10.7002C3.825 11.5753 3.33333 12.7623 3.33333 14V14.6667C2.8029 14.6667 2.29419 14.456 1.91912 14.0809C1.54405 13.7058 1.33333 13.1971 1.33333 12.6667V3.33333C1.33333 2.8029 1.54405 2.29419 1.91912 1.91912C2.29419 1.54405 2.8029 1.33333 3.33333 1.33333H12.6667C13.1971 1.33333 13.7058 1.54405 14.0809 1.91912C14.456 2.29419 14.6667 2.8029 14.6667 3.33333V12.6667Z",
|
|
3477
3508
|
fill: "currentColor"
|
|
3478
3509
|
}
|
|
3479
3510
|
),
|
|
3480
|
-
/* @__PURE__ */ (0,
|
|
3511
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3481
3512
|
"path",
|
|
3482
3513
|
{
|
|
3483
3514
|
d: "M8.00004 2.66669C7.47263 2.66669 6.95705 2.82308 6.51852 3.1161C6.07999 3.40912 5.7382 3.82559 5.53636 4.31286C5.33453 4.80013 5.28172 5.33631 5.38461 5.85359C5.48751 6.37088 5.74148 6.84603 6.11442 7.21897C6.48736 7.59191 6.96252 7.84589 7.4798 7.94878C7.99708 8.05167 8.53326 7.99887 9.02053 7.79703C9.5078 7.5952 9.92428 7.2534 10.2173 6.81487C10.5103 6.37634 10.6667 5.86077 10.6667 5.33335C10.6667 4.62611 10.3858 3.94783 9.88566 3.44774C9.38556 2.94764 8.70729 2.66669 8.00004 2.66669ZM8.00004 6.66669C7.73633 6.66669 7.47855 6.58849 7.25928 6.44198C7.04002 6.29547 6.86912 6.08723 6.7682 5.8436C6.66729 5.59996 6.64088 5.33187 6.69233 5.07323C6.74378 4.81459 6.87076 4.57701 7.05723 4.39054C7.2437 4.20407 7.48128 4.07709 7.73992 4.02564C7.99856 3.97419 8.26665 4.0006 8.51029 4.10151C8.75392 4.20243 8.96216 4.37333 9.10867 4.59259C9.25518 4.81186 9.33338 5.06965 9.33338 5.33335C9.33338 5.68698 9.1929 6.02611 8.94285 6.27616C8.6928 6.52621 8.35366 6.66669 8.00004 6.66669Z",
|
|
@@ -3485,7 +3516,7 @@ var ProfileAboutTabIcon = (_a) => {
|
|
|
3485
3516
|
}
|
|
3486
3517
|
)
|
|
3487
3518
|
] }),
|
|
3488
|
-
/* @__PURE__ */ (0,
|
|
3519
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("clipPath", { id: "clip_profile_about_tab", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3489
3520
|
]
|
|
3490
3521
|
})
|
|
3491
3522
|
);
|
|
@@ -3493,7 +3524,7 @@ var ProfileAboutTabIcon = (_a) => {
|
|
|
3493
3524
|
ProfileAboutTabIcon.displayName = "ProfileAboutTabIcon";
|
|
3494
3525
|
|
|
3495
3526
|
// src/primitives/icon/svg/profile-accounts-wallets-tab.tsx
|
|
3496
|
-
var
|
|
3527
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
3497
3528
|
var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
3498
3529
|
var _b = _a, {
|
|
3499
3530
|
title: title2,
|
|
@@ -3502,7 +3533,7 @@ var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
|
3502
3533
|
"title",
|
|
3503
3534
|
"className"
|
|
3504
3535
|
]);
|
|
3505
|
-
return /* @__PURE__ */ (0,
|
|
3536
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
3506
3537
|
"svg",
|
|
3507
3538
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3508
3539
|
viewBox: "0 0 16 16",
|
|
@@ -3510,15 +3541,15 @@ var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
|
3510
3541
|
fill: "none"
|
|
3511
3542
|
}, getIconA11yProps(title2)), props), {
|
|
3512
3543
|
children: [
|
|
3513
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3514
|
-
/* @__PURE__ */ (0,
|
|
3544
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("title", { children: title2 }) : null,
|
|
3545
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("g", { clipPath: "url(#clip_profile_accounts_wallets_tab)", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
3515
3546
|
"path",
|
|
3516
3547
|
{
|
|
3517
3548
|
d: "M5 8.66667C4.40666 8.66667 3.82664 8.49072 3.33329 8.16108C2.83994 7.83143 2.45542 7.3629 2.22836 6.81472C2.0013 6.26654 1.94189 5.66334 2.05764 5.0814C2.1734 4.49945 2.45912 3.96491 2.87868 3.54535C3.29824 3.12579 3.83279 2.84007 4.41473 2.72431C4.99667 2.60856 5.59987 2.66797 6.14805 2.89503C6.69623 3.12209 7.16476 3.50661 7.49441 3.99996C7.82405 4.4933 8 5.07332 8 5.66667C7.99912 6.46205 7.68276 7.2246 7.12035 7.78701C6.55793 8.34943 5.79538 8.66579 5 8.66667ZM5 4C4.67036 4 4.34813 4.09775 4.07405 4.28089C3.79997 4.46402 3.58635 4.72432 3.4602 5.02886C3.33405 5.33341 3.30105 5.66852 3.36536 5.99182C3.42967 6.31512 3.5884 6.61209 3.82149 6.84518C4.05458 7.07827 4.35155 7.237 4.67485 7.30131C4.99815 7.36562 5.33326 7.33261 5.63781 7.20647C5.94235 7.08032 6.20265 6.8667 6.38578 6.59262C6.56892 6.31854 6.66667 5.9963 6.66667 5.66667C6.66667 5.22464 6.49107 4.80072 6.17851 4.48816C5.86595 4.1756 5.44203 4 5 4ZM10 15.3333V15C10 13.6739 9.47322 12.4021 8.53553 11.4645C7.59785 10.5268 6.32608 10 5 10C3.67392 10 2.40215 10.5268 1.46447 11.4645C0.526784 12.4021 0 13.6739 0 15L0 15.3333C0 15.5101 0.0702379 15.6797 0.195262 15.8047C0.320286 15.9298 0.489856 16 0.666667 16C0.843478 16 1.01305 15.9298 1.13807 15.8047C1.2631 15.6797 1.33333 15.5101 1.33333 15.3333V15C1.33333 14.0275 1.71964 13.0949 2.40728 12.4073C3.09491 11.7196 4.02754 11.3333 5 11.3333C5.97246 11.3333 6.90509 11.7196 7.59273 12.4073C8.28036 13.0949 8.66667 14.0275 8.66667 15V15.3333C8.66667 15.5101 8.73691 15.6797 8.86193 15.8047C8.98695 15.9298 9.15652 16 9.33333 16C9.51014 16 9.67971 15.9298 9.80474 15.8047C9.92976 15.6797 10 15.5101 10 15.3333ZM16 12C16 11.0991 15.7392 10.2175 15.2491 9.46158C14.7591 8.70565 14.0607 8.10772 13.2383 7.73998C12.4159 7.37223 11.5046 7.25039 10.6145 7.38916C9.72437 7.52793 8.89344 7.92137 8.222 8.522C8.15584 8.58013 8.10186 8.6508 8.06317 8.72991C8.02448 8.80903 8.00185 8.89502 7.99659 8.98293C7.99132 9.07085 8.00353 9.15893 8.0325 9.24209C8.06147 9.32526 8.10663 9.40186 8.16537 9.46748C8.22412 9.53309 8.29528 9.58642 8.37475 9.62437C8.45422 9.66232 8.54042 9.68416 8.62838 9.68861C8.71633 9.69306 8.8043 9.68004 8.88719 9.6503C8.97009 9.62055 9.04627 9.57469 9.11133 9.51534C9.59097 9.08641 10.1845 8.80548 10.8203 8.70644C11.456 8.6074 12.1069 8.69449 12.6943 8.9572C13.2816 9.21991 13.7804 9.647 14.1304 10.1869C14.4804 10.7269 14.6667 11.3566 14.6667 12C14.6667 12.1768 14.7369 12.3464 14.8619 12.4714C14.987 12.5964 15.1565 12.6667 15.3333 12.6667C15.5101 12.6667 15.6797 12.5964 15.8047 12.4714C15.9298 12.3464 16 12.1768 16 12ZM11.6667 6C11.0733 6 10.4933 5.82405 9.99996 5.49441C9.50661 5.16477 9.12209 4.69623 8.89503 4.14805C8.66796 3.59987 8.60855 2.99667 8.72431 2.41473C8.84007 1.83279 9.12579 1.29824 9.54535 0.878681C9.9649 0.459123 10.4995 0.173401 11.0814 0.0576455C11.6633 -0.0581102 12.2665 0.00129986 12.8147 0.228363C13.3629 0.455426 13.8314 0.839943 14.1611 1.33329C14.4907 1.82664 14.6667 2.40666 14.6667 3C14.6658 3.79538 14.3494 4.55793 13.787 5.12035C13.2246 5.68277 12.462 5.99912 11.6667 6ZM11.6667 1.33333C11.337 1.33333 11.0148 1.43108 10.7407 1.61422C10.4666 1.79735 10.253 2.05765 10.1269 2.3622C10.0007 2.66674 9.96772 3.00185 10.032 3.32515C10.0963 3.64845 10.2551 3.94543 10.4882 4.17851C10.7212 4.4116 11.0182 4.57033 11.3415 4.63464C11.6648 4.69895 11.9999 4.66595 12.3045 4.5398C12.609 4.41365 12.8693 4.20003 13.0525 3.92595C13.2356 3.65187 13.3333 3.32964 13.3333 3C13.3333 2.55797 13.1577 2.13405 12.8452 1.82149C12.5326 1.50893 12.1087 1.33333 11.6667 1.33333Z",
|
|
3518
3549
|
fill: "currentColor"
|
|
3519
3550
|
}
|
|
3520
3551
|
) }),
|
|
3521
|
-
/* @__PURE__ */ (0,
|
|
3552
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("clipPath", { id: "clip_profile_accounts_wallets_tab", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3522
3553
|
]
|
|
3523
3554
|
})
|
|
3524
3555
|
);
|
|
@@ -3526,10 +3557,10 @@ var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
|
3526
3557
|
ProfileAccountsWalletsTabIcon.displayName = "ProfileAccountsWalletsTabIcon";
|
|
3527
3558
|
|
|
3528
3559
|
// src/primitives/icon/svg/profile.tsx
|
|
3529
|
-
var
|
|
3560
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
3530
3561
|
var ProfileIcon = (_a) => {
|
|
3531
3562
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3532
|
-
return /* @__PURE__ */ (0,
|
|
3563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
3533
3564
|
"svg",
|
|
3534
3565
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3535
3566
|
viewBox: "0 0 16 16",
|
|
@@ -3537,16 +3568,16 @@ var ProfileIcon = (_a) => {
|
|
|
3537
3568
|
fill: "none"
|
|
3538
3569
|
}, getIconA11yProps(title2)), props), {
|
|
3539
3570
|
children: [
|
|
3540
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3541
|
-
/* @__PURE__ */ (0,
|
|
3542
|
-
/* @__PURE__ */ (0,
|
|
3571
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("title", { children: title2 }) : null,
|
|
3572
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("g", { clipPath: "url(#profile-clip)", children: [
|
|
3573
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
3543
3574
|
"path",
|
|
3544
3575
|
{
|
|
3545
3576
|
d: "M8 8C8.79113 8 9.56448 7.76541 10.2223 7.32588C10.8801 6.88635 11.3928 6.26164 11.6955 5.53074C11.9983 4.79983 12.0775 3.99556 11.9231 3.21964C11.7688 2.44372 11.3878 1.73098 10.8284 1.17157C10.269 0.612165 9.55629 0.231202 8.78036 0.0768607C8.00444 -0.0774802 7.20017 0.00173314 6.46927 0.304484C5.73836 0.607234 5.11365 1.11992 4.67412 1.77772C4.2346 2.43552 4 3.20888 4 4C4.00106 5.06054 4.42283 6.07734 5.17274 6.82726C5.92266 7.57718 6.93946 7.99894 8 8ZM8 1.33334C8.52742 1.33334 9.04299 1.48973 9.48152 1.78275C9.92005 2.07577 10.2618 2.49224 10.4637 2.97951C10.6655 3.46678 10.7183 4.00296 10.6154 4.52024C10.5125 5.03753 10.2586 5.51268 9.88562 5.88562C9.51268 6.25856 9.03752 6.51254 8.52024 6.61543C8.00296 6.71832 7.46678 6.66551 6.97951 6.46368C6.49224 6.26185 6.07577 5.92005 5.78275 5.48152C5.48973 5.04299 5.33333 4.52742 5.33333 4C5.33333 3.29276 5.61428 2.61448 6.11438 2.11438C6.61448 1.61429 7.29276 1.33334 8 1.33334Z",
|
|
3546
3577
|
fill: "currentColor"
|
|
3547
3578
|
}
|
|
3548
3579
|
),
|
|
3549
|
-
/* @__PURE__ */ (0,
|
|
3580
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
3550
3581
|
"path",
|
|
3551
3582
|
{
|
|
3552
3583
|
d: "M8 9.33334C6.40924 9.33511 4.88414 9.96782 3.75931 11.0927C2.63447 12.2175 2.00176 13.7426 2 15.3333C2 15.5102 2.07024 15.6797 2.19526 15.8047C2.32029 15.9298 2.48986 16 2.66667 16C2.84348 16 3.01305 15.9298 3.13807 15.8047C3.2631 15.6797 3.33333 15.5102 3.33333 15.3333C3.33333 14.0957 3.825 12.9087 4.70017 12.0335C5.57534 11.1583 6.76232 10.6667 8 10.6667C9.23768 10.6667 10.4247 11.1583 11.2998 12.0335C12.175 12.9087 12.6667 14.0957 12.6667 15.3333C12.6667 15.5102 12.7369 15.6797 12.8619 15.8047C12.987 15.9298 13.1565 16 13.3333 16C13.5101 16 13.6797 15.9298 13.8047 15.8047C13.9298 15.6797 14 15.5102 14 15.3333C13.9982 13.7426 13.3655 12.2175 12.2407 11.0927C11.1159 9.96782 9.59076 9.33511 8 9.33334Z",
|
|
@@ -3554,7 +3585,7 @@ var ProfileIcon = (_a) => {
|
|
|
3554
3585
|
}
|
|
3555
3586
|
)
|
|
3556
3587
|
] }),
|
|
3557
|
-
/* @__PURE__ */ (0,
|
|
3588
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("clipPath", { id: "profile-clip", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3558
3589
|
]
|
|
3559
3590
|
})
|
|
3560
3591
|
);
|
|
@@ -3562,10 +3593,10 @@ var ProfileIcon = (_a) => {
|
|
|
3562
3593
|
ProfileIcon.displayName = "ProfileIcon";
|
|
3563
3594
|
|
|
3564
3595
|
// src/primitives/icon/svg/recenter.tsx
|
|
3565
|
-
var
|
|
3596
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
3566
3597
|
var RecenterIcon = (_a) => {
|
|
3567
3598
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3568
|
-
return /* @__PURE__ */ (0,
|
|
3599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
3569
3600
|
"svg",
|
|
3570
3601
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3571
3602
|
viewBox: "0 0 16 16",
|
|
@@ -3573,15 +3604,15 @@ var RecenterIcon = (_a) => {
|
|
|
3573
3604
|
fill: "none"
|
|
3574
3605
|
}, getIconA11yProps(title2)), props), {
|
|
3575
3606
|
children: [
|
|
3576
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3577
|
-
/* @__PURE__ */ (0,
|
|
3607
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("title", { children: title2 }) : null,
|
|
3608
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("g", { clipPath: "url(#recenter-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3578
3609
|
"path",
|
|
3579
3610
|
{
|
|
3580
3611
|
d: "M16 8C16 8.36867 15.7013 8.66667 15.3333 8.66667H0.666667C0.298667 8.66667 0 8.36867 0 8C0 7.63133 0.298667 7.33333 0.666667 7.33333H15.3333C15.7013 7.33333 16 7.63133 16 8ZM7.05733 5.60933C7.31733 5.86933 7.65867 5.99933 8 5.99933C8.34133 5.99933 8.68267 5.86933 8.94267 5.60933L11.138 3.414C11.3987 3.15333 11.3987 2.732 11.138 2.47133C10.8773 2.21067 10.456 2.21067 10.1953 2.47133L8.66667 4V0.666667C8.66667 0.298 8.368 0 8 0C7.632 0 7.33333 0.298 7.33333 0.666667V4L5.80467 2.47133C5.544 2.21067 5.12267 2.21067 4.862 2.47133C4.60133 2.732 4.60133 3.15333 4.862 3.414L7.05733 5.60933ZM8.94267 10.3907C8.42333 9.87133 7.57667 9.87133 7.05733 10.3907L4.862 12.586C4.60133 12.8467 4.60133 13.268 4.862 13.5287C5.12267 13.7893 5.544 13.7893 5.80467 13.5287L7.33333 12V15.3333C7.33333 15.702 7.632 16 8 16C8.368 16 8.66667 15.702 8.66667 15.3333V12L10.1953 13.5287C10.3253 13.6587 10.496 13.724 10.6667 13.724C10.8373 13.724 11.008 13.6587 11.138 13.5287C11.3987 13.268 11.3987 12.8467 11.138 12.586L8.94267 10.3907Z",
|
|
3581
3612
|
fill: "currentColor"
|
|
3582
3613
|
}
|
|
3583
3614
|
) }),
|
|
3584
|
-
/* @__PURE__ */ (0,
|
|
3615
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("clipPath", { id: "recenter-clip", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3585
3616
|
]
|
|
3586
3617
|
})
|
|
3587
3618
|
);
|
|
@@ -3589,10 +3620,10 @@ var RecenterIcon = (_a) => {
|
|
|
3589
3620
|
RecenterIcon.displayName = "RecenterIcon";
|
|
3590
3621
|
|
|
3591
3622
|
// src/primitives/icon/svg/revenue-alt.tsx
|
|
3592
|
-
var
|
|
3623
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
3593
3624
|
var RevenueAltIcon = (_a) => {
|
|
3594
3625
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3595
|
-
return /* @__PURE__ */ (0,
|
|
3626
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
3596
3627
|
"svg",
|
|
3597
3628
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3598
3629
|
viewBox: "0 0 20 20",
|
|
@@ -3600,8 +3631,8 @@ var RevenueAltIcon = (_a) => {
|
|
|
3600
3631
|
fill: "none"
|
|
3601
3632
|
}, getIconA11yProps(title2)), props), {
|
|
3602
3633
|
children: [
|
|
3603
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3604
|
-
/* @__PURE__ */ (0,
|
|
3634
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("title", { children: title2 }) : null,
|
|
3635
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
3605
3636
|
"path",
|
|
3606
3637
|
{
|
|
3607
3638
|
d: "M3 14V6M3 6L1.5 7.5M3 6L4.5 7.5M17 6V14M17 14L15.5 12.5M17 14L18.5 12.5",
|
|
@@ -3611,7 +3642,7 @@ var RevenueAltIcon = (_a) => {
|
|
|
3611
3642
|
strokeLinejoin: "round"
|
|
3612
3643
|
}
|
|
3613
3644
|
),
|
|
3614
|
-
/* @__PURE__ */ (0,
|
|
3645
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
3615
3646
|
"path",
|
|
3616
3647
|
{
|
|
3617
3648
|
d: "M10 5.5V14.5M12.5 7.4C12.5 6.55 11.38 5.86 10 5.86C8.62 5.86 7.5 6.55 7.5 7.4C7.5 8.25 8.62 8.94 10 8.94C11.38 8.94 12.5 9.63 12.5 10.48C12.5 11.33 11.38 12.02 10 12.02C8.62 12.02 7.5 11.33 7.5 10.48",
|
|
@@ -3628,10 +3659,10 @@ var RevenueAltIcon = (_a) => {
|
|
|
3628
3659
|
RevenueAltIcon.displayName = "RevenueAltIcon";
|
|
3629
3660
|
|
|
3630
3661
|
// src/primitives/icon/svg/search.tsx
|
|
3631
|
-
var
|
|
3662
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3632
3663
|
var SearchIcon = (_a) => {
|
|
3633
3664
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3634
|
-
return /* @__PURE__ */ (0,
|
|
3665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
3635
3666
|
"svg",
|
|
3636
3667
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3637
3668
|
viewBox: "0 0 16 16",
|
|
@@ -3640,8 +3671,8 @@ var SearchIcon = (_a) => {
|
|
|
3640
3671
|
className
|
|
3641
3672
|
}, getIconA11yProps(title2)), props), {
|
|
3642
3673
|
children: [
|
|
3643
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3644
|
-
/* @__PURE__ */ (0,
|
|
3674
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("title", { children: title2 }) : null,
|
|
3675
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3645
3676
|
"path",
|
|
3646
3677
|
{
|
|
3647
3678
|
d: "M7.3335 12.3333C10.0949 12.3333 12.3335 10.0947 12.3335 7.33329C12.3335 4.57187 10.0949 2.33329 7.3335 2.33329C4.57208 2.33329 2.3335 4.57187 2.3335 7.33329C2.3335 10.0947 4.57208 12.3333 7.3335 12.3333Z",
|
|
@@ -3651,7 +3682,7 @@ var SearchIcon = (_a) => {
|
|
|
3651
3682
|
strokeLinejoin: "round"
|
|
3652
3683
|
}
|
|
3653
3684
|
),
|
|
3654
|
-
/* @__PURE__ */ (0,
|
|
3685
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3655
3686
|
"path",
|
|
3656
3687
|
{
|
|
3657
3688
|
d: "M13.6668 13.6666L11.1667 11.1666",
|
|
@@ -3668,10 +3699,10 @@ var SearchIcon = (_a) => {
|
|
|
3668
3699
|
SearchIcon.displayName = "SearchIcon";
|
|
3669
3700
|
|
|
3670
3701
|
// src/primitives/icon/svg/shield-trust.tsx
|
|
3671
|
-
var
|
|
3702
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
3672
3703
|
var ShieldTrustIcon = (_a) => {
|
|
3673
3704
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3674
|
-
return /* @__PURE__ */ (0,
|
|
3705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
3675
3706
|
"svg",
|
|
3676
3707
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3677
3708
|
width: "16",
|
|
@@ -3681,15 +3712,15 @@ var ShieldTrustIcon = (_a) => {
|
|
|
3681
3712
|
fill: "none"
|
|
3682
3713
|
}, getIconA11yProps(title2)), props), {
|
|
3683
3714
|
children: [
|
|
3684
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3685
|
-
/* @__PURE__ */ (0,
|
|
3715
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("title", { children: title2 }) : null,
|
|
3716
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("g", { clipPath: "url(#clip0_7779_1212)", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3686
3717
|
"path",
|
|
3687
3718
|
{
|
|
3688
3719
|
d: "M15.4633 9.39L14.024 10.828V11.976C14.024 13.0787 13.1266 13.976 12.024 13.976H10.8766L9.43798 15.414C9.06131 15.7913 8.55864 16 8.02398 16C7.48931 16 6.98731 15.792 6.60998 15.414L5.17198 13.976H4.02398C2.92131 13.976 2.02398 13.0787 2.02398 11.976V10.828L0.585977 9.39C-0.194023 8.61067 -0.194023 7.34133 0.585977 6.56133L2.02398 5.12333V3.976C2.02398 2.87333 2.92131 1.976 4.02398 1.976H5.17198L6.60998 0.537331C7.36598 -0.219335 8.68398 -0.217335 9.43864 0.537331L10.8766 1.97533H12.024C12.3926 1.97533 12.6906 2.274 12.6906 2.642C12.6906 3.01 12.3926 3.30866 12.024 3.30866H10.6006C10.4233 3.30866 10.254 3.23866 10.1293 3.11333L8.49531 1.47933C8.24398 1.22866 7.80598 1.22733 7.55264 1.47933L5.91931 3.11333C5.79398 3.23866 5.62531 3.30866 5.44798 3.30866H4.02398C3.65598 3.30866 3.35731 3.608 3.35731 3.97533V5.39866C3.35731 5.57533 3.28731 5.74533 3.16198 5.87L1.52864 7.50333C1.26864 7.76333 1.26864 8.186 1.52864 8.44667L3.16198 10.08C3.28731 10.2053 3.35731 10.374 3.35731 10.5513V11.9753C3.35731 12.3433 3.65598 12.642 4.02398 12.642H5.44798C5.62531 12.642 5.79464 12.712 5.91931 12.8373L7.55264 14.4707C7.80531 14.7227 8.24398 14.7227 8.49464 14.4707L10.1293 12.8373C10.2546 12.712 10.4233 12.642 10.6006 12.642H12.024C12.392 12.642 12.6906 12.3433 12.6906 11.9753V10.5513C12.6906 10.374 12.7606 10.2047 12.886 10.08L14.52 8.44667C14.78 8.18667 14.78 7.76333 14.52 7.50333C14.26 7.24267 14.26 6.82066 14.52 6.56066C14.7806 6.30066 15.2026 6.3 15.4633 6.56066C16.242 7.34 16.242 8.60867 15.4633 9.38867V9.39ZM7.14731 9.108L5.13531 7.116C4.87264 6.856 4.45198 6.85933 4.19198 7.12066C3.93264 7.382 3.93531 7.804 4.19664 8.06333L6.20931 10.056C6.61864 10.4613 7.15731 10.6647 7.69531 10.6647C8.23331 10.6647 8.77331 10.46 9.18331 10.0527L15.1366 4.13867C15.398 3.87933 15.3993 3.45733 15.1393 3.196C14.8793 2.93466 14.458 2.93266 14.1966 3.19266L8.24331 9.10733C7.94131 9.408 7.44998 9.408 7.14731 9.108Z",
|
|
3689
3720
|
fill: "currentColor"
|
|
3690
3721
|
}
|
|
3691
3722
|
) }),
|
|
3692
|
-
/* @__PURE__ */ (0,
|
|
3723
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("clipPath", { id: "clip0_7779_1212", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3693
3724
|
]
|
|
3694
3725
|
})
|
|
3695
3726
|
);
|
|
@@ -3697,10 +3728,10 @@ var ShieldTrustIcon = (_a) => {
|
|
|
3697
3728
|
ShieldTrustIcon.displayName = "ShieldTrustIcon";
|
|
3698
3729
|
|
|
3699
3730
|
// src/primitives/icon/svg/solana.tsx
|
|
3700
|
-
var
|
|
3731
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
3701
3732
|
var SolanaIcon = (_a) => {
|
|
3702
3733
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3703
|
-
return /* @__PURE__ */ (0,
|
|
3734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
3704
3735
|
"svg",
|
|
3705
3736
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3706
3737
|
viewBox: "0 0 24 24",
|
|
@@ -3708,31 +3739,31 @@ var SolanaIcon = (_a) => {
|
|
|
3708
3739
|
fill: "none"
|
|
3709
3740
|
}, getIconA11yProps(title2)), props), {
|
|
3710
3741
|
children: [
|
|
3711
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3712
|
-
/* @__PURE__ */ (0,
|
|
3713
|
-
/* @__PURE__ */ (0,
|
|
3742
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("title", { children: title2 }) : null,
|
|
3743
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("rect", { width: "24", height: "24", fill: "black" }),
|
|
3744
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
3714
3745
|
"path",
|
|
3715
3746
|
{
|
|
3716
3747
|
d: "M5.92399 15.7169C6.03262 15.6083 6.18198 15.5449 6.34039 15.5449H20.706C20.9685 15.5449 21.0998 15.8617 20.9142 16.0473L18.0764 18.8851C17.9677 18.9938 17.8184 19.0571 17.66 19.0571H3.29437C3.03186 19.0571 2.90061 18.7403 3.08617 18.5547L5.92399 15.7169Z",
|
|
3717
3748
|
fill: "url(#paint0_linear_1471_9988)"
|
|
3718
3749
|
}
|
|
3719
3750
|
),
|
|
3720
|
-
/* @__PURE__ */ (0,
|
|
3751
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
3721
3752
|
"path",
|
|
3722
3753
|
{
|
|
3723
3754
|
d: "M5.92399 5.1217C6.03714 5.01307 6.1865 4.94971 6.34039 4.94971H20.706C20.9685 4.94971 21.0998 5.26653 20.9142 5.4521L18.0764 8.28991C17.9677 8.39854 17.8184 8.4619 17.66 8.4619H3.29437C3.03186 8.4619 2.90061 8.14508 3.08617 7.95951L5.92399 5.1217Z",
|
|
3724
3755
|
fill: "url(#paint1_linear_1471_9988)"
|
|
3725
3756
|
}
|
|
3726
3757
|
),
|
|
3727
|
-
/* @__PURE__ */ (0,
|
|
3758
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
3728
3759
|
"path",
|
|
3729
3760
|
{
|
|
3730
3761
|
d: "M18.0764 10.3854C17.9677 10.2767 17.8184 10.2134 17.66 10.2134H3.29437C3.03186 10.2134 2.90061 10.5302 3.08617 10.7158L5.92399 13.5536C6.03262 13.6622 6.18198 13.7256 6.34039 13.7256H20.706C20.9685 13.7256 21.0998 13.4088 20.9142 13.2232L18.0764 10.3854Z",
|
|
3731
3762
|
fill: "url(#paint2_linear_1471_9988)"
|
|
3732
3763
|
}
|
|
3733
3764
|
),
|
|
3734
|
-
/* @__PURE__ */ (0,
|
|
3735
|
-
/* @__PURE__ */ (0,
|
|
3765
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("defs", { children: [
|
|
3766
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
3736
3767
|
"linearGradient",
|
|
3737
3768
|
{
|
|
3738
3769
|
id: "paint0_linear_1471_9988",
|
|
@@ -3742,12 +3773,12 @@ var SolanaIcon = (_a) => {
|
|
|
3742
3773
|
y2: "22.2975",
|
|
3743
3774
|
gradientUnits: "userSpaceOnUse",
|
|
3744
3775
|
children: [
|
|
3745
|
-
/* @__PURE__ */ (0,
|
|
3746
|
-
/* @__PURE__ */ (0,
|
|
3776
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("stop", { stopColor: "#00FFA3" }),
|
|
3777
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("stop", { offset: "1", stopColor: "#DC1FFF" })
|
|
3747
3778
|
]
|
|
3748
3779
|
}
|
|
3749
3780
|
),
|
|
3750
|
-
/* @__PURE__ */ (0,
|
|
3781
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
3751
3782
|
"linearGradient",
|
|
3752
3783
|
{
|
|
3753
3784
|
id: "paint1_linear_1471_9988",
|
|
@@ -3757,12 +3788,12 @@ var SolanaIcon = (_a) => {
|
|
|
3757
3788
|
y2: "20.028",
|
|
3758
3789
|
gradientUnits: "userSpaceOnUse",
|
|
3759
3790
|
children: [
|
|
3760
|
-
/* @__PURE__ */ (0,
|
|
3761
|
-
/* @__PURE__ */ (0,
|
|
3791
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("stop", { stopColor: "#00FFA3" }),
|
|
3792
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("stop", { offset: "1", stopColor: "#DC1FFF" })
|
|
3762
3793
|
]
|
|
3763
3794
|
}
|
|
3764
3795
|
),
|
|
3765
|
-
/* @__PURE__ */ (0,
|
|
3796
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
3766
3797
|
"linearGradient",
|
|
3767
3798
|
{
|
|
3768
3799
|
id: "paint2_linear_1471_9988",
|
|
@@ -3772,8 +3803,8 @@ var SolanaIcon = (_a) => {
|
|
|
3772
3803
|
y2: "21.1555",
|
|
3773
3804
|
gradientUnits: "userSpaceOnUse",
|
|
3774
3805
|
children: [
|
|
3775
|
-
/* @__PURE__ */ (0,
|
|
3776
|
-
/* @__PURE__ */ (0,
|
|
3806
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("stop", { stopColor: "#00FFA3" }),
|
|
3807
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("stop", { offset: "1", stopColor: "#DC1FFF" })
|
|
3777
3808
|
]
|
|
3778
3809
|
}
|
|
3779
3810
|
)
|
|
@@ -3785,10 +3816,10 @@ var SolanaIcon = (_a) => {
|
|
|
3785
3816
|
SolanaIcon.displayName = "SolanaIcon";
|
|
3786
3817
|
|
|
3787
3818
|
// src/primitives/icon/svg/sort-end-date.tsx
|
|
3788
|
-
var
|
|
3819
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
3789
3820
|
var SortEndDateIcon = (_a) => {
|
|
3790
3821
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3791
|
-
return /* @__PURE__ */ (0,
|
|
3822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
3792
3823
|
"svg",
|
|
3793
3824
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3794
3825
|
viewBox: "0 0 16 16",
|
|
@@ -3796,15 +3827,15 @@ var SortEndDateIcon = (_a) => {
|
|
|
3796
3827
|
fill: "none"
|
|
3797
3828
|
}, getIconA11yProps(title2)), props), {
|
|
3798
3829
|
children: [
|
|
3799
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3800
|
-
/* @__PURE__ */ (0,
|
|
3830
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("title", { children: title2 }) : null,
|
|
3831
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("g", { clipPath: "url(#sort-end-date-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3801
3832
|
"path",
|
|
3802
3833
|
{
|
|
3803
3834
|
d: "M16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8C0 7.82319 0.0702379 7.65362 0.195262 7.5286C0.320286 7.40357 0.489856 7.33333 0.666667 7.33333C0.843478 7.33333 1.01305 7.40357 1.13807 7.5286C1.2631 7.65362 1.33333 7.82319 1.33333 8C1.33333 9.31854 1.72433 10.6075 2.45687 11.7038C3.18941 12.8001 4.2306 13.6546 5.44878 14.1592C6.66695 14.6638 8.0074 14.7958 9.3006 14.5386C10.5938 14.2813 11.7817 13.6464 12.714 12.714C13.6464 11.7817 14.2813 10.5938 14.5386 9.3006C14.7958 8.0074 14.6638 6.66695 14.1592 5.44878C13.6546 4.2306 12.8001 3.18941 11.7038 2.45687C10.6075 1.72433 9.31854 1.33333 8 1.33333C7.82319 1.33333 7.65362 1.2631 7.5286 1.13807C7.40357 1.01305 7.33333 0.843478 7.33333 0.666667C7.33333 0.489856 7.40357 0.320286 7.5286 0.195262C7.65362 0.0702379 7.82319 0 8 0C10.121 0.00229405 12.1545 0.845885 13.6543 2.34568C15.1541 3.84547 15.9977 5.87897 16 8ZM6.85133 7.33333H5.33333C5.15652 7.33333 4.98695 7.40357 4.86193 7.5286C4.7369 7.65362 4.66667 7.82319 4.66667 8C4.66667 8.17681 4.7369 8.34638 4.86193 8.4714C4.98695 8.59643 5.15652 8.66667 5.33333 8.66667H6.85133C6.95314 8.84349 7.09429 8.99449 7.26384 9.108C7.43339 9.2215 7.62679 9.29445 7.82906 9.3212C8.03134 9.34795 8.23705 9.32778 8.43028 9.26226C8.6235 9.19673 8.79905 9.0876 8.94333 8.94333C9.0876 8.79905 9.19673 8.6235 9.26226 8.43028C9.32778 8.23705 9.34795 8.03134 9.3212 7.82906C9.29445 7.62679 9.2215 7.43339 9.108 7.26384C8.99449 7.09429 8.84349 6.95314 8.66667 6.85133V4.66667C8.66667 4.48986 8.59643 4.32029 8.4714 4.19526C8.34638 4.07024 8.17681 4 8 4C7.82319 4 7.65362 4.07024 7.5286 4.19526C7.40357 4.32029 7.33333 4.48986 7.33333 4.66667V6.85133C7.13362 6.96752 6.96752 7.13362 6.85133 7.33333ZM1.218 5.856C1.34985 5.856 1.47875 5.8169 1.58838 5.74365C1.69801 5.67039 1.78346 5.56627 1.83392 5.44446C1.88438 5.32264 1.89758 5.18859 1.87186 5.05927C1.84613 4.92995 1.78264 4.81116 1.6894 4.71793C1.59617 4.62469 1.47738 4.5612 1.34806 4.53548C1.21874 4.50975 1.0847 4.52296 0.962878 4.57341C0.84106 4.62387 0.736941 4.70932 0.663687 4.81895C0.590433 4.92859 0.551333 5.05748 0.551333 5.18933C0.551333 5.36614 0.621571 5.53571 0.746595 5.66074C0.87162 5.78576 1.04119 5.856 1.218 5.856ZM2.814 3.47133C2.94585 3.47133 3.07475 3.43223 3.18438 3.35898C3.29401 3.28573 3.37946 3.18161 3.42992 3.05979C3.48038 2.93797 3.49358 2.80393 3.46786 2.67461C3.44213 2.54529 3.37864 2.4265 3.2854 2.33326C3.19217 2.24003 3.07338 2.17653 2.94406 2.15081C2.81474 2.12509 2.6807 2.13829 2.55888 2.18875C2.43706 2.23921 2.33294 2.32465 2.25969 2.43429C2.18643 2.54392 2.14733 2.67281 2.14733 2.80467C2.14733 2.98148 2.21757 3.15105 2.3426 3.27607C2.46762 3.4011 2.63719 3.47133 2.814 3.47133ZM5.186 1.894C5.31785 1.894 5.44675 1.8549 5.55638 1.78165C5.66601 1.70839 5.75146 1.60427 5.80192 1.48246C5.85238 1.36064 5.86558 1.22659 5.83986 1.09727C5.81413 0.967952 5.75064 0.849164 5.6574 0.755929C5.56417 0.662694 5.44538 0.5992 5.31606 0.573476C5.18674 0.547753 5.0527 0.560955 4.93088 0.611414C4.80906 0.661872 4.70494 0.74732 4.63169 0.856953C4.55843 0.966586 4.51933 1.09548 4.51933 1.22733C4.51933 1.40414 4.58957 1.57371 4.7146 1.69874C4.83962 1.82376 5.00919 1.894 5.186 1.894Z",
|
|
3804
3835
|
fill: "currentColor"
|
|
3805
3836
|
}
|
|
3806
3837
|
) }),
|
|
3807
|
-
/* @__PURE__ */ (0,
|
|
3838
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("clipPath", { id: "sort-end-date-clip", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3808
3839
|
]
|
|
3809
3840
|
})
|
|
3810
3841
|
);
|
|
@@ -3812,10 +3843,10 @@ var SortEndDateIcon = (_a) => {
|
|
|
3812
3843
|
SortEndDateIcon.displayName = "SortEndDateIcon";
|
|
3813
3844
|
|
|
3814
3845
|
// src/primitives/icon/svg/sort-top-arbitrage.tsx
|
|
3815
|
-
var
|
|
3846
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
3816
3847
|
var SortTopArbitrageIcon = (_a) => {
|
|
3817
3848
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3818
|
-
return /* @__PURE__ */ (0,
|
|
3849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
3819
3850
|
"svg",
|
|
3820
3851
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3821
3852
|
viewBox: "0 0 16 16",
|
|
@@ -3823,30 +3854,30 @@ var SortTopArbitrageIcon = (_a) => {
|
|
|
3823
3854
|
fill: "none"
|
|
3824
3855
|
}, getIconA11yProps(title2)), props), {
|
|
3825
3856
|
children: [
|
|
3826
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3827
|
-
/* @__PURE__ */ (0,
|
|
3828
|
-
/* @__PURE__ */ (0,
|
|
3857
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("title", { children: title2 }) : null,
|
|
3858
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("g", { clipPath: "url(#sort-top-arbitrage-clip)", children: [
|
|
3859
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
3829
3860
|
"path",
|
|
3830
3861
|
{
|
|
3831
3862
|
d: "M15.4314 6.314L14.9067 5.6C14.5432 5.10529 14.0686 4.7028 13.5211 4.42491C12.9737 4.14701 12.3687 4.00148 11.7547 4H4.25541C3.65409 4.00157 3.06116 4.14118 2.52231 4.40806C1.98346 4.67494 1.51308 5.06197 1.14741 5.53933L0.600079 6.25533C0.155734 6.84154 -0.0531817 7.57279 0.0144266 8.30525C0.0820349 9.03772 0.421273 9.71837 0.965413 10.2133L6.29208 15.3513C6.75993 15.7686 7.36522 15.9986 7.99208 15.9973C8.63223 15.9961 9.24941 15.7587 9.72541 15.3307L15.0161 10.242C15.5633 9.7574 15.9094 9.08556 15.9863 8.35863C16.0632 7.63171 15.8652 6.90233 15.4314 6.314ZM13.8314 6.38533L14.3561 7.10133C14.4088 7.1746 14.4552 7.25221 14.4947 7.33333H11.3007C11.2525 7.01408 11.1693 6.7011 11.0527 6.4L10.6261 5.33333H11.7547C12.159 5.3341 12.5575 5.42967 12.9182 5.61237C13.2788 5.79508 13.5916 6.05982 13.8314 6.38533ZM7.99341 13.392L6.14741 9.212C6.08065 9.0352 6.03021 8.85266 5.99675 8.66667H9.96475C9.93678 8.81325 9.89755 8.95745 9.84741 9.098L7.99341 13.392ZM6.06675 7.33333C6.09463 7.21381 6.12958 7.09605 6.17141 6.98067L6.82741 5.33333H9.19008L9.81475 6.89533C9.86959 7.03796 9.91415 7.18434 9.94808 7.33333H6.06675ZM2.20741 6.34733C2.44845 6.0329 2.75844 5.77797 3.11349 5.60217C3.46855 5.42638 3.85922 5.3344 4.25541 5.33333H5.38875L4.93341 6.486C4.82356 6.75949 4.74159 7.04338 4.68875 7.33333H1.49675C1.54247 7.2391 1.59764 7.14976 1.66141 7.06667L2.20741 6.34733ZM1.87408 9.236C1.70016 9.07824 1.56353 8.88377 1.47408 8.66667H4.65541C4.69963 9.02585 4.78623 9.37853 4.91341 9.71733L6.79808 13.984L1.87408 9.236ZM9.18075 14.0093L11.0834 9.6C11.1938 9.29824 11.2708 8.98525 11.3127 8.66667H14.5334C14.439 8.89552 14.2949 9.10049 14.1114 9.26667L9.18075 14.0093Z",
|
|
3832
3863
|
fill: "currentColor"
|
|
3833
3864
|
}
|
|
3834
3865
|
),
|
|
3835
|
-
/* @__PURE__ */ (0,
|
|
3866
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
3836
3867
|
"path",
|
|
3837
3868
|
{
|
|
3838
3869
|
d: "M8.00065 2.66667C8.17746 2.66667 8.34703 2.59643 8.47206 2.4714C8.59708 2.34638 8.66732 2.17681 8.66732 2V0.666667C8.66732 0.489856 8.59708 0.320286 8.47206 0.195262C8.34703 0.0702379 8.17746 0 8.00065 0C7.82384 0 7.65427 0.0702379 7.52925 0.195262C7.40422 0.320286 7.33398 0.489856 7.33398 0.666667V2C7.33398 2.17681 7.40422 2.34638 7.52925 2.4714C7.65427 2.59643 7.82384 2.66667 8.00065 2.66667Z",
|
|
3839
3870
|
fill: "currentColor"
|
|
3840
3871
|
}
|
|
3841
3872
|
),
|
|
3842
|
-
/* @__PURE__ */ (0,
|
|
3873
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
3843
3874
|
"path",
|
|
3844
3875
|
{
|
|
3845
3876
|
d: "M11.0357 2.6C11.1144 2.63958 11.2002 2.66316 11.288 2.66939C11.3759 2.67561 11.4642 2.66436 11.5477 2.63628C11.6312 2.6082 11.7083 2.56384 11.7745 2.50578C11.8408 2.44772 11.8949 2.3771 11.9337 2.298L12.6004 0.964671C12.6794 0.806425 12.6923 0.623264 12.6363 0.455481C12.5803 0.287699 12.4599 0.149038 12.3017 0.0700039C12.1434 -0.00903065 11.9603 -0.0219652 11.7925 0.0340457C11.6247 0.0900565 11.4861 0.210425 11.407 0.368671L10.7404 1.702C10.7005 1.78031 10.6766 1.86572 10.6699 1.95331C10.6632 2.0409 10.6739 2.12895 10.7013 2.2124C10.7288 2.29585 10.7724 2.37305 10.8298 2.43957C10.8872 2.50609 10.9572 2.56061 11.0357 2.6Z",
|
|
3846
3877
|
fill: "currentColor"
|
|
3847
3878
|
}
|
|
3848
3879
|
),
|
|
3849
|
-
/* @__PURE__ */ (0,
|
|
3880
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
3850
3881
|
"path",
|
|
3851
3882
|
{
|
|
3852
3883
|
d: "M4.06955 2.298C4.14858 2.45669 4.28742 2.57748 4.45552 2.63381C4.62361 2.69013 4.8072 2.67737 4.96588 2.59834C5.12457 2.5193 5.24536 2.38047 5.30169 2.21237C5.35801 2.04428 5.34525 1.86069 5.26622 1.702L4.59955 0.368671C4.56042 0.290315 4.50623 0.220435 4.44009 0.16302C4.37395 0.105605 4.29715 0.0617794 4.21407 0.0340457C4.04629 -0.0219652 3.86313 -0.00903065 3.70488 0.0700039C3.54664 0.149038 3.42627 0.287699 3.37026 0.455481C3.31425 0.623264 3.32718 0.806425 3.40622 0.964671L4.06955 2.298Z",
|
|
@@ -3854,7 +3885,7 @@ var SortTopArbitrageIcon = (_a) => {
|
|
|
3854
3885
|
}
|
|
3855
3886
|
)
|
|
3856
3887
|
] }),
|
|
3857
|
-
/* @__PURE__ */ (0,
|
|
3888
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("clipPath", { id: "sort-top-arbitrage-clip", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3858
3889
|
]
|
|
3859
3890
|
})
|
|
3860
3891
|
);
|
|
@@ -3862,10 +3893,10 @@ var SortTopArbitrageIcon = (_a) => {
|
|
|
3862
3893
|
SortTopArbitrageIcon.displayName = "SortTopArbitrageIcon";
|
|
3863
3894
|
|
|
3864
3895
|
// src/primitives/icon/svg/sort-volume-24hr.tsx
|
|
3865
|
-
var
|
|
3896
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
3866
3897
|
var SortVolume24hrIcon = (_a) => {
|
|
3867
3898
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3868
|
-
return /* @__PURE__ */ (0,
|
|
3899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
3869
3900
|
"svg",
|
|
3870
3901
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3871
3902
|
width: "16",
|
|
@@ -3875,15 +3906,15 @@ var SortVolume24hrIcon = (_a) => {
|
|
|
3875
3906
|
fill: "none"
|
|
3876
3907
|
}, getIconA11yProps(title2)), props), {
|
|
3877
3908
|
children: [
|
|
3878
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3879
|
-
/* @__PURE__ */ (0,
|
|
3909
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("title", { children: title2 }) : null,
|
|
3910
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("g", { clipPath: "url(#clip0_7744_587)", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
3880
3911
|
"path",
|
|
3881
3912
|
{
|
|
3882
3913
|
d: "M8 3.33333C8.36867 3.33333 8.66667 3.63133 8.66667 4V7.91733C8.66667 8.15 8.546 8.36467 8.34733 8.48667L5.40867 10.284C5.30067 10.3507 5.18 10.3813 5.06133 10.3813C4.83667 10.3813 4.618 10.268 4.492 10.062C4.3 9.748 4.39867 9.338 4.71333 9.14533L7.33333 7.54333V4C7.33333 3.63133 7.63133 3.33333 8 3.33333ZM14.6667 8.66667H12C11.6313 8.66667 11.3333 8.96467 11.3333 9.33333C11.3333 9.702 11.6313 10 12 10H13.712L10.826 12.8853C10.6973 13.014 10.47 13.0147 10.34 12.8853L9.604 12.1493C8.97 11.514 7.86533 11.514 7.22933 12.1493L4.52733 14.8627C4.26733 15.124 4.26867 15.546 4.52933 15.806C4.65933 15.9353 4.83 16 5 16C5.17133 16 5.34267 15.934 5.47267 15.804L8.174 13.0907C8.30267 12.962 8.53 12.9613 8.66 13.0907L9.396 13.8267C10.03 14.462 11.136 14.4613 11.7693 13.8267L14.6667 10.93V12.666C14.6667 13.0347 14.9647 13.3327 15.3333 13.3327C15.702 13.3327 16 13.0347 16 12.666V9.99933C16 9.264 15.402 8.666 14.6667 8.666V8.66667ZM1.33333 8C1.33333 4.324 4.324 1.33333 8 1.33333C11.2187 1.33333 13.976 3.62667 14.5567 6.78733C14.624 7.14933 14.9673 7.39333 15.3327 7.32267C15.6947 7.256 15.934 6.90867 15.868 6.54667C15.1713 2.75333 11.862 0 8 0C3.58867 0 0 3.58867 0 8C0 10.2107 0.928 12.344 2.54533 13.852C2.67333 13.972 2.83733 14.0313 3 14.0313C3.17867 14.0313 3.356 13.9607 3.48733 13.8193C3.73867 13.5507 3.72333 13.1287 3.454 12.8773C2.10667 11.62 1.33267 9.84267 1.33267 8.00067L1.33333 8Z",
|
|
3883
3914
|
fill: "currentColor"
|
|
3884
3915
|
}
|
|
3885
3916
|
) }),
|
|
3886
|
-
/* @__PURE__ */ (0,
|
|
3917
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("clipPath", { id: "clip0_7744_587", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3887
3918
|
]
|
|
3888
3919
|
})
|
|
3889
3920
|
);
|
|
@@ -3891,10 +3922,10 @@ var SortVolume24hrIcon = (_a) => {
|
|
|
3891
3922
|
SortVolume24hrIcon.displayName = "SortVolume24hrIcon";
|
|
3892
3923
|
|
|
3893
3924
|
// src/primitives/icon/svg/sort-volume.tsx
|
|
3894
|
-
var
|
|
3925
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
3895
3926
|
var SortVolumeIcon = (_a) => {
|
|
3896
3927
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3897
|
-
return /* @__PURE__ */ (0,
|
|
3928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
3898
3929
|
"svg",
|
|
3899
3930
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3900
3931
|
viewBox: "0 0 16 16",
|
|
@@ -3902,15 +3933,15 @@ var SortVolumeIcon = (_a) => {
|
|
|
3902
3933
|
fill: "none"
|
|
3903
3934
|
}, getIconA11yProps(title2)), props), {
|
|
3904
3935
|
children: [
|
|
3905
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3906
|
-
/* @__PURE__ */ (0,
|
|
3936
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("title", { children: title2 }) : null,
|
|
3937
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("g", { clipPath: "url(#sort-volume-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
3907
3938
|
"path",
|
|
3908
3939
|
{
|
|
3909
3940
|
d: "M13.6667 10.6667H11.3333V8.33333C11.3333 7.04666 10.2867 6 9 6H7C5.71333 6 4.66667 7.04666 4.66667 8.33333V8.66666H2.33333C1.04667 8.66666 0 9.71333 0 11V13.6667C0 14.9533 1.04667 16 2.33333 16H13.6667C14.9533 16 16 14.9533 16 13.6667V13C16 11.7133 14.9533 10.6667 13.6667 10.6667ZM6 8.33333C6 7.782 6.44867 7.33333 7 7.33333H9C9.55133 7.33333 10 7.782 10 8.33333V14.6667H6V8.33333ZM1.33333 13.6667V11C1.33333 10.4487 1.782 9.99999 2.33333 9.99999H4.66667V14.6667H2.33333C1.782 14.6667 1.33333 14.218 1.33333 13.6667ZM14.6667 13.6667C14.6667 14.218 14.218 14.6667 13.6667 14.6667H11.3333V12H13.6667C14.218 12 14.6667 12.4487 14.6667 13V13.6667ZM5.36067 1.90466C5.42467 1.73 5.59133 1.61333 5.778 1.61333H7.112L7.584 0.288662C7.64867 0.114662 7.81467 -0.000671387 8.00067 -0.000671387C8.18667 -0.000671387 8.35267 0.114662 8.41733 0.288662L8.88933 1.61333H10.2233C10.41 1.61333 10.5767 1.73 10.6407 1.90533C10.7047 2.08066 10.652 2.27733 10.5093 2.398L9.458 3.25466L9.89267 4.57933C9.952 4.75866 9.892 4.95599 9.742 5.07133C9.592 5.18666 9.386 5.19466 9.228 5.09199L8.004 4.29466L6.80067 5.09999C6.726 5.14999 6.63933 5.17533 6.55333 5.17533C6.45933 5.17533 6.36533 5.14533 6.28667 5.08666C6.13533 4.97333 6.07267 4.77733 6.12933 4.59733L6.54733 3.25666L5.49067 2.39666C5.34867 2.276 5.296 2.07933 5.36067 1.90466Z",
|
|
3910
3941
|
fill: "currentColor"
|
|
3911
3942
|
}
|
|
3912
3943
|
) }),
|
|
3913
|
-
/* @__PURE__ */ (0,
|
|
3944
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("clipPath", { id: "sort-volume-clip", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3914
3945
|
]
|
|
3915
3946
|
})
|
|
3916
3947
|
);
|
|
@@ -3918,10 +3949,10 @@ var SortVolumeIcon = (_a) => {
|
|
|
3918
3949
|
SortVolumeIcon.displayName = "SortVolumeIcon";
|
|
3919
3950
|
|
|
3920
3951
|
// src/primitives/icon/svg/sparkles-filled.tsx
|
|
3921
|
-
var
|
|
3952
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
3922
3953
|
var SparklesFilledIcon = (_a) => {
|
|
3923
3954
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3924
|
-
return /* @__PURE__ */ (0,
|
|
3955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
3925
3956
|
"svg",
|
|
3926
3957
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3927
3958
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3932,15 +3963,15 @@ var SparklesFilledIcon = (_a) => {
|
|
|
3932
3963
|
className
|
|
3933
3964
|
}, getIconA11yProps(title2)), props), {
|
|
3934
3965
|
children: [
|
|
3935
|
-
/* @__PURE__ */ (0,
|
|
3966
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("g", { clipPath: "url(#clip0_2028_8371)", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
3936
3967
|
"path",
|
|
3937
3968
|
{
|
|
3938
3969
|
d: "M13.0001 15.9999C12.8668 16 12.7366 15.9602 12.6262 15.8856C12.5158 15.8109 12.4303 15.705 12.3807 15.5813L11.8181 14.1726L10.4074 13.5786C10.2864 13.5252 10.1839 13.4372 10.1127 13.3256C10.0416 13.2141 10.0049 13.0841 10.0074 12.9518C10.0099 12.8196 10.0514 12.691 10.1267 12.5823C10.202 12.4735 10.3078 12.3894 10.4307 12.3406L11.8227 11.8133L12.3807 10.4186C12.4321 10.2967 12.5182 10.1927 12.6284 10.1195C12.7385 10.0464 12.8678 10.0074 13.0001 10.0074C13.1323 10.0074 13.2616 10.0464 13.3718 10.1195C13.482 10.1927 13.5681 10.2967 13.6194 10.4186L14.1801 11.8186L15.5801 12.3793C15.7022 12.4303 15.8065 12.5164 15.8799 12.6266C15.9532 12.7368 15.9923 12.8662 15.9923 12.9986C15.9923 13.131 15.9532 13.2604 15.8799 13.3706C15.8065 13.4808 15.7022 13.5668 15.5801 13.6179L14.1801 14.1786L13.6194 15.5786C13.5703 15.7028 13.4849 15.8093 13.3745 15.8845C13.2641 15.9596 13.1336 15.9998 13.0001 15.9999ZM6.66674 13.9999C6.37872 14.0034 6.09733 13.9135 5.86467 13.7437C5.63201 13.5739 5.46059 13.3333 5.37607 13.0579L4.30007 9.69326L0.92474 8.56393C0.652316 8.47287 0.415886 8.29758 0.249599 8.06337C0.0833117 7.82916 -0.00422421 7.54815 -0.000366007 7.26094C0.0034922 6.97372 0.0985448 6.69517 0.271063 6.46551C0.443581 6.23585 0.684635 6.06697 0.959407 5.98326L4.30807 4.9606L5.43607 1.59126C5.51994 1.31451 5.69343 1.07349 5.92924 0.906102C6.16505 0.738716 6.44981 0.654464 6.73874 0.666597C7.02681 0.666987 7.307 0.76066 7.53738 0.933596C7.76776 1.10653 7.93594 1.34943 8.01674 1.62593L9.03807 4.96926L12.3914 6.0426C12.6619 6.13332 12.897 6.30672 13.0636 6.53831C13.2302 6.7699 13.3198 7.04798 13.3198 7.33326C13.3198 7.61855 13.2302 7.89662 13.0636 8.12822C12.897 8.35981 12.6619 8.53321 12.3914 8.62393L9.03207 9.6986L7.95741 13.0579C7.87289 13.3333 7.70147 13.5739 7.46881 13.7437C7.23615 13.9135 6.95476 14.0034 6.66674 13.9999ZM13.6667 4.6666C13.5181 4.66659 13.3738 4.61693 13.2566 4.52549C13.1394 4.43406 13.0562 4.30609 13.0201 4.16193L12.7821 3.2086L11.8267 2.95193C11.6832 2.91335 11.5566 2.82788 11.4672 2.70911C11.3777 2.59033 11.3306 2.44507 11.3332 2.29641C11.3358 2.14776 11.388 2.00424 11.4815 1.88867C11.5751 1.7731 11.7046 1.69212 11.8494 1.6586L12.7827 1.44193L13.0201 0.504597C13.0562 0.360445 13.1395 0.232498 13.2566 0.141076C13.3738 0.0496542 13.5181 0 13.6667 0C13.8154 0 13.9597 0.0496542 14.0769 0.141076C14.194 0.232498 14.2773 0.360445 14.3134 0.504597L14.5494 1.44993L15.4947 1.6866C15.6389 1.72272 15.7668 1.80598 15.8583 1.92314C15.9497 2.0403 15.9993 2.18465 15.9993 2.33326C15.9993 2.48187 15.9497 2.62622 15.8583 2.74338C15.7668 2.86055 15.6389 2.9438 15.4947 2.97993L14.5494 3.2166L14.3134 4.16193C14.2773 4.30609 14.194 4.43406 14.0769 4.52549C13.9597 4.61693 13.8154 4.66659 13.6667 4.6666Z",
|
|
3939
3970
|
fill: "currentColor"
|
|
3940
3971
|
}
|
|
3941
3972
|
) }),
|
|
3942
|
-
/* @__PURE__ */ (0,
|
|
3943
|
-
/* @__PURE__ */ (0,
|
|
3973
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("defs", { children: [
|
|
3974
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
3944
3975
|
"linearGradient",
|
|
3945
3976
|
{
|
|
3946
3977
|
id: "paint0_linear_2028_8371",
|
|
@@ -3950,12 +3981,12 @@ var SparklesFilledIcon = (_a) => {
|
|
|
3950
3981
|
y2: "7.99997",
|
|
3951
3982
|
gradientUnits: "userSpaceOnUse",
|
|
3952
3983
|
children: [
|
|
3953
|
-
/* @__PURE__ */ (0,
|
|
3954
|
-
/* @__PURE__ */ (0,
|
|
3984
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("stop", { stopColor: "currentColor" }),
|
|
3985
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("stop", { offset: "1", stopColor: "currentColor" })
|
|
3955
3986
|
]
|
|
3956
3987
|
}
|
|
3957
3988
|
),
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
3989
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("clipPath", { id: "clip0_2028_8371", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("rect", { width: "16", height: "16", fill: "white" }) })
|
|
3959
3990
|
] })
|
|
3960
3991
|
]
|
|
3961
3992
|
})
|
|
@@ -3964,10 +3995,10 @@ var SparklesFilledIcon = (_a) => {
|
|
|
3964
3995
|
SparklesFilledIcon.displayName = "SparklesFilledIcon";
|
|
3965
3996
|
|
|
3966
3997
|
// src/primitives/icon/svg/spinner.tsx
|
|
3967
|
-
var
|
|
3998
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
3968
3999
|
var SpinnerIcon = (_a) => {
|
|
3969
4000
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3970
|
-
return /* @__PURE__ */ (0,
|
|
4001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
3971
4002
|
"svg",
|
|
3972
4003
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3973
4004
|
width: "26",
|
|
@@ -3978,8 +4009,8 @@ var SpinnerIcon = (_a) => {
|
|
|
3978
4009
|
className
|
|
3979
4010
|
}, getIconA11yProps(title2)), props), {
|
|
3980
4011
|
children: [
|
|
3981
|
-
title2 ? /* @__PURE__ */ (0,
|
|
3982
|
-
/* @__PURE__ */ (0,
|
|
4012
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("title", { children: title2 }) : null,
|
|
4013
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
3983
4014
|
"path",
|
|
3984
4015
|
{
|
|
3985
4016
|
d: "M13 1C10.5371 1 8.13377 1.75785 6.11636 3.17068C4.09894 4.58352 2.56512 6.58289 1.72308 8.89742C0.88105 11.212 0.771596 13.7295 1.40958 16.1084C2.04756 18.4873 3.40208 20.6122 5.28926 22.1948C7.17645 23.7774 9.5049 24.741 11.9585 24.9547C14.4122 25.1685 16.8722 24.6221 19.0046 23.3896C21.137 22.1572 22.8386 20.2985 23.8783 18.0658C24.918 15.8331 25.2456 13.3345 24.8165 10.9092",
|
|
@@ -3995,10 +4026,10 @@ var SpinnerIcon = (_a) => {
|
|
|
3995
4026
|
SpinnerIcon.displayName = "SpinnerIcon";
|
|
3996
4027
|
|
|
3997
4028
|
// src/primitives/icon/svg/stay-in-control.tsx
|
|
3998
|
-
var
|
|
4029
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
3999
4030
|
var StayInControlIcon = (_a) => {
|
|
4000
4031
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4001
|
-
return /* @__PURE__ */ (0,
|
|
4032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
4002
4033
|
"svg",
|
|
4003
4034
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4004
4035
|
width: "28",
|
|
@@ -4009,16 +4040,16 @@ var StayInControlIcon = (_a) => {
|
|
|
4009
4040
|
className
|
|
4010
4041
|
}, getIconA11yProps(title2)), props), {
|
|
4011
4042
|
children: [
|
|
4012
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4013
|
-
/* @__PURE__ */ (0,
|
|
4014
|
-
/* @__PURE__ */ (0,
|
|
4043
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("title", { children: title2 }) : null,
|
|
4044
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
|
|
4045
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4015
4046
|
"path",
|
|
4016
4047
|
{
|
|
4017
4048
|
d: "M14 27.9406C13.9102 27.9406 13.8215 27.9196 13.7387 27.8788L13.2428 27.6314C10.6832 26.3504 2.32983 21.5753 2.32983 13.8648L2.33217 7.62776C2.33217 5.36093 3.77767 3.35776 5.93017 2.64493L13.8168 0.0292617C13.9358 -0.010405 14.0653 -0.010405 14.1832 0.0292617L22.0687 2.64376C24.2212 3.35776 25.6667 5.36093 25.6667 7.6266L25.6632 13.8636C25.6632 22.6113 17.2958 26.6584 14.7315 27.6909L14.217 27.8974C14.147 27.9254 14.0723 27.9394 13.9988 27.9394L14 27.9406ZM14 1.19826L6.29767 3.7521C4.6235 4.30743 3.5 5.86493 3.5 7.62776L3.49767 13.8648C3.49767 20.9056 11.3563 25.3844 13.7655 26.5884L14.0268 26.7191L14.2975 26.6106C16.6903 25.6481 24.4977 21.8833 24.4977 13.8659L24.5012 7.62893C24.5012 5.8661 23.3765 4.3086 21.7035 3.75326L14 1.19826Z",
|
|
4018
4049
|
fill: "currentColor"
|
|
4019
4050
|
}
|
|
4020
4051
|
),
|
|
4021
|
-
/* @__PURE__ */ (0,
|
|
4052
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4022
4053
|
"path",
|
|
4023
4054
|
{
|
|
4024
4055
|
d: "M12.8112 17.5001C12.0633 17.5001 11.3155 17.2154 10.7462 16.6461L7.18083 13.2569C6.94749 13.0352 6.93816 12.6654 7.15983 12.4321C7.38149 12.1999 7.75016 12.1894 7.98466 12.4111L11.5605 15.8107C12.2535 16.5026 13.363 16.5037 14.0455 15.8212L20.5928 9.49791C20.8262 9.27508 21.196 9.28208 21.4177 9.51308C21.6417 9.74408 21.6358 10.1139 21.4037 10.3379L14.8622 16.6542C14.2987 17.2177 13.5543 17.5012 12.81 17.5012L12.8112 17.5001Z",
|
|
@@ -4026,7 +4057,7 @@ var StayInControlIcon = (_a) => {
|
|
|
4026
4057
|
}
|
|
4027
4058
|
)
|
|
4028
4059
|
] }),
|
|
4029
|
-
/* @__PURE__ */ (0,
|
|
4060
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
4030
4061
|
]
|
|
4031
4062
|
})
|
|
4032
4063
|
);
|
|
@@ -4034,10 +4065,10 @@ var StayInControlIcon = (_a) => {
|
|
|
4034
4065
|
StayInControlIcon.displayName = "StayInControlIcon";
|
|
4035
4066
|
|
|
4036
4067
|
// src/primitives/icon/svg/success-check.tsx
|
|
4037
|
-
var
|
|
4068
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
4038
4069
|
var SuccessCheckIcon = (_a) => {
|
|
4039
4070
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4040
|
-
return /* @__PURE__ */ (0,
|
|
4071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
4041
4072
|
"svg",
|
|
4042
4073
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4043
4074
|
width: "24",
|
|
@@ -4048,8 +4079,8 @@ var SuccessCheckIcon = (_a) => {
|
|
|
4048
4079
|
className
|
|
4049
4080
|
}, getIconA11yProps(title2)), props), {
|
|
4050
4081
|
children: [
|
|
4051
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4052
|
-
/* @__PURE__ */ (0,
|
|
4082
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("title", { children: title2 }) : null,
|
|
4083
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
4053
4084
|
"path",
|
|
4054
4085
|
{
|
|
4055
4086
|
d: "M7.74919 20.6626C7.06793 20.6629 6.41457 20.3921 5.93325 19.91L0.443061 14.4219C-0.147687 13.8309 -0.147687 12.873 0.443061 12.2821C1.034 11.6913 1.99191 11.6913 2.58284 12.2821L7.74919 17.4484L21.4172 3.78046C22.0081 3.18972 22.966 3.18972 23.5569 3.78046C24.1477 4.3714 24.1477 5.32931 23.5569 5.92024L9.56513 19.91C9.08381 20.3921 8.43045 20.6629 7.74919 20.6626Z",
|
|
@@ -4063,10 +4094,10 @@ var SuccessCheckIcon = (_a) => {
|
|
|
4063
4094
|
SuccessCheckIcon.displayName = "SuccessCheckIcon";
|
|
4064
4095
|
|
|
4065
4096
|
// src/primitives/icon/svg/telegram.tsx
|
|
4066
|
-
var
|
|
4097
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
4067
4098
|
var TelegramIcon = (_a) => {
|
|
4068
4099
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4069
|
-
return /* @__PURE__ */ (0,
|
|
4100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
4070
4101
|
"svg",
|
|
4071
4102
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4072
4103
|
viewBox: "0 0 20 20",
|
|
@@ -4074,8 +4105,8 @@ var TelegramIcon = (_a) => {
|
|
|
4074
4105
|
fill: "none"
|
|
4075
4106
|
}, getIconA11yProps(title2)), props), {
|
|
4076
4107
|
children: [
|
|
4077
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4078
|
-
/* @__PURE__ */ (0,
|
|
4108
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("title", { children: title2 }) : null,
|
|
4109
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
4079
4110
|
"path",
|
|
4080
4111
|
{
|
|
4081
4112
|
fillRule: "evenodd",
|
|
@@ -4084,7 +4115,7 @@ var TelegramIcon = (_a) => {
|
|
|
4084
4115
|
fill: "currentColor"
|
|
4085
4116
|
}
|
|
4086
4117
|
) }),
|
|
4087
|
-
/* @__PURE__ */ (0,
|
|
4118
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
4088
4119
|
]
|
|
4089
4120
|
})
|
|
4090
4121
|
);
|
|
@@ -4092,10 +4123,10 @@ var TelegramIcon = (_a) => {
|
|
|
4092
4123
|
TelegramIcon.displayName = "TelegramIcon";
|
|
4093
4124
|
|
|
4094
4125
|
// src/primitives/icon/svg/triangle-down.tsx
|
|
4095
|
-
var
|
|
4126
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
4096
4127
|
var TriangleDownIcon = (_a) => {
|
|
4097
4128
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4098
|
-
return /* @__PURE__ */ (0,
|
|
4129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
4099
4130
|
"svg",
|
|
4100
4131
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4101
4132
|
viewBox: "0 0 8 8",
|
|
@@ -4103,16 +4134,16 @@ var TriangleDownIcon = (_a) => {
|
|
|
4103
4134
|
fill: "none"
|
|
4104
4135
|
}, getIconA11yProps(title2)), props), {
|
|
4105
4136
|
children: [
|
|
4106
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4107
|
-
/* @__PURE__ */ (0,
|
|
4108
|
-
/* @__PURE__ */ (0,
|
|
4137
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("title", { children: title2 }) : null,
|
|
4138
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
|
|
4139
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4109
4140
|
"path",
|
|
4110
4141
|
{
|
|
4111
4142
|
d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
|
|
4112
4143
|
fill: "currentColor"
|
|
4113
4144
|
}
|
|
4114
4145
|
),
|
|
4115
|
-
/* @__PURE__ */ (0,
|
|
4146
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4116
4147
|
"path",
|
|
4117
4148
|
{
|
|
4118
4149
|
d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
|
|
@@ -4120,7 +4151,7 @@ var TriangleDownIcon = (_a) => {
|
|
|
4120
4151
|
}
|
|
4121
4152
|
)
|
|
4122
4153
|
] }),
|
|
4123
|
-
/* @__PURE__ */ (0,
|
|
4154
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
4124
4155
|
]
|
|
4125
4156
|
})
|
|
4126
4157
|
);
|
|
@@ -4128,10 +4159,10 @@ var TriangleDownIcon = (_a) => {
|
|
|
4128
4159
|
TriangleDownIcon.displayName = "TriangleDownIcon";
|
|
4129
4160
|
|
|
4130
4161
|
// src/primitives/icon/svg/triangle-up.tsx
|
|
4131
|
-
var
|
|
4162
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
4132
4163
|
var TriangleUpIcon = (_a) => {
|
|
4133
4164
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4134
|
-
return /* @__PURE__ */ (0,
|
|
4165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
4135
4166
|
"svg",
|
|
4136
4167
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4137
4168
|
viewBox: "0 0 8 8",
|
|
@@ -4139,16 +4170,16 @@ var TriangleUpIcon = (_a) => {
|
|
|
4139
4170
|
fill: "none"
|
|
4140
4171
|
}, getIconA11yProps(title2)), props), {
|
|
4141
4172
|
children: [
|
|
4142
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4143
|
-
/* @__PURE__ */ (0,
|
|
4144
|
-
/* @__PURE__ */ (0,
|
|
4173
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("title", { children: title2 }) : null,
|
|
4174
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
|
|
4175
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4145
4176
|
"path",
|
|
4146
4177
|
{
|
|
4147
4178
|
d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
|
|
4148
4179
|
fill: "currentColor"
|
|
4149
4180
|
}
|
|
4150
4181
|
),
|
|
4151
|
-
/* @__PURE__ */ (0,
|
|
4182
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4152
4183
|
"path",
|
|
4153
4184
|
{
|
|
4154
4185
|
d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
|
|
@@ -4156,7 +4187,7 @@ var TriangleUpIcon = (_a) => {
|
|
|
4156
4187
|
}
|
|
4157
4188
|
)
|
|
4158
4189
|
] }),
|
|
4159
|
-
/* @__PURE__ */ (0,
|
|
4190
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
4160
4191
|
]
|
|
4161
4192
|
})
|
|
4162
4193
|
);
|
|
@@ -4164,10 +4195,10 @@ var TriangleUpIcon = (_a) => {
|
|
|
4164
4195
|
TriangleUpIcon.displayName = "TriangleUpIcon";
|
|
4165
4196
|
|
|
4166
4197
|
// src/primitives/icon/svg/triangle-up-filled.tsx
|
|
4167
|
-
var
|
|
4198
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
4168
4199
|
var TriangleUpFilledIcon = (_a) => {
|
|
4169
4200
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4170
|
-
return /* @__PURE__ */ (0,
|
|
4201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
4171
4202
|
"svg",
|
|
4172
4203
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4173
4204
|
viewBox: "0 0 8 8",
|
|
@@ -4175,8 +4206,8 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
4175
4206
|
fill: "none"
|
|
4176
4207
|
}, getIconA11yProps(title2)), props), {
|
|
4177
4208
|
children: [
|
|
4178
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4179
|
-
/* @__PURE__ */ (0,
|
|
4209
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("title", { children: title2 }) : null,
|
|
4210
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
4180
4211
|
"path",
|
|
4181
4212
|
{
|
|
4182
4213
|
d: "M6.67873 8.00001H1.3214C1.09613 8.00053 0.874481 7.94332 0.677605 7.83384C0.480728 7.72435 0.315192 7.56625 0.196788 7.3746C0.0783848 7.18296 0.0110649 6.96417 0.00125164 6.73911C-0.0085616 6.51405 0.0394592 6.29023 0.140732 6.08901L2.81973 0.729677C2.92186 0.523193 3.0766 0.347273 3.26837 0.219641C3.46014 0.0920097 3.68216 0.0171748 3.91207 0.00267686C4.17147 -0.013831 4.43 0.0462826 4.6555 0.175542C4.88101 0.3048 5.06354 0.497501 5.1804 0.729677L7.8594 6.08901C7.96008 6.2903 8.00764 6.51398 7.99756 6.73881C7.98748 6.96365 7.92009 7.18218 7.8018 7.37365C7.68351 7.56512 7.51823 7.72317 7.32167 7.83279C7.12511 7.94242 6.90379 7.99998 6.67873 8.00001Z",
|
|
@@ -4190,10 +4221,10 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
4190
4221
|
TriangleUpFilledIcon.displayName = "TriangleUpFilledIcon";
|
|
4191
4222
|
|
|
4192
4223
|
// src/primitives/icon/svg/twitter.tsx
|
|
4193
|
-
var
|
|
4224
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
4194
4225
|
var TwitterIcon = (_a) => {
|
|
4195
4226
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4196
|
-
return /* @__PURE__ */ (0,
|
|
4227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
4197
4228
|
"svg",
|
|
4198
4229
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4199
4230
|
viewBox: "0 0 24 24",
|
|
@@ -4201,8 +4232,8 @@ var TwitterIcon = (_a) => {
|
|
|
4201
4232
|
fill: "none"
|
|
4202
4233
|
}, getIconA11yProps(title2)), props), {
|
|
4203
4234
|
children: [
|
|
4204
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4205
|
-
/* @__PURE__ */ (0,
|
|
4235
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("title", { children: title2 }) : null,
|
|
4236
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
4206
4237
|
"path",
|
|
4207
4238
|
{
|
|
4208
4239
|
d: "M18.325 2H21.7002L14.3283 10.4233L23 21.8871H16.2121L10.8918 14.936L4.81058 21.8871H1.42992L9.31325 12.8753L1 2H7.96025L12.7645 8.35342L18.325 2ZM17.1398 19.8695H19.0088L6.94183 3.91217H4.93433L17.1398 19.8695Z",
|
|
@@ -4216,10 +4247,10 @@ var TwitterIcon = (_a) => {
|
|
|
4216
4247
|
TwitterIcon.displayName = "TwitterIcon";
|
|
4217
4248
|
|
|
4218
4249
|
// src/primitives/icon/svg/upload.tsx
|
|
4219
|
-
var
|
|
4250
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
4220
4251
|
var UploadIcon = (_a) => {
|
|
4221
4252
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4222
|
-
return /* @__PURE__ */ (0,
|
|
4253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
4223
4254
|
"svg",
|
|
4224
4255
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4225
4256
|
viewBox: "0 0 16 16",
|
|
@@ -4227,16 +4258,16 @@ var UploadIcon = (_a) => {
|
|
|
4227
4258
|
fill: "none"
|
|
4228
4259
|
}, getIconA11yProps(title2)), props), {
|
|
4229
4260
|
children: [
|
|
4230
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4231
|
-
/* @__PURE__ */ (0,
|
|
4232
|
-
/* @__PURE__ */ (0,
|
|
4261
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("title", { children: title2 }) : null,
|
|
4262
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("g", { clipPath: "url(#upload-clip)", children: [
|
|
4263
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
4233
4264
|
"path",
|
|
4234
4265
|
{
|
|
4235
4266
|
d: "M7.33755 1.71857L7.33288 12.0106C7.33288 12.1874 7.40312 12.357 7.52814 12.482C7.65317 12.607 7.82274 12.6772 7.99955 12.6772C8.17636 12.6772 8.34593 12.607 8.47095 12.482C8.59598 12.357 8.66621 12.1874 8.66621 12.0106L8.67088 1.7299L10.6122 3.6719C10.7372 3.79688 10.9068 3.86709 11.0835 3.86709C11.2603 3.86709 11.4299 3.79688 11.5549 3.6719C11.6799 3.54689 11.7501 3.37735 11.7501 3.20057C11.7501 3.02379 11.6799 2.85426 11.5549 2.72924L9.41421 0.585904C9.22848 0.400051 9.00795 0.252617 8.76521 0.152028C8.52248 0.0514383 8.2623 -0.000335693 7.99955 -0.000335693C7.7368 -0.000335693 7.47662 0.0514383 7.23388 0.152028C6.99115 0.252617 6.77061 0.400051 6.58488 0.585904L4.44421 2.72724C4.31923 2.85226 4.24902 3.02179 4.24902 3.19857C4.24902 3.37535 4.31923 3.54489 4.44421 3.6699C4.56923 3.79488 4.73877 3.86509 4.91555 3.86509C5.09232 3.86509 5.26186 3.79488 5.38688 3.6699L7.33755 1.71857Z",
|
|
4236
4267
|
fill: "currentColor"
|
|
4237
4268
|
}
|
|
4238
4269
|
),
|
|
4239
|
-
/* @__PURE__ */ (0,
|
|
4270
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
4240
4271
|
"path",
|
|
4241
4272
|
{
|
|
4242
4273
|
d: "M14.6667 11.3333V14C14.6667 14.1768 14.5964 14.3464 14.4714 14.4714C14.3464 14.5964 14.1768 14.6667 14 14.6667H2C1.82319 14.6667 1.65362 14.5964 1.5286 14.4714C1.40357 14.3464 1.33333 14.1768 1.33333 14V11.3333C1.33333 11.1565 1.2631 10.9869 1.13807 10.8619C1.01305 10.7369 0.843478 10.6667 0.666667 10.6667C0.489856 10.6667 0.320286 10.7369 0.195262 10.8619C0.0702379 10.9869 0 11.1565 0 11.3333L0 14C0 14.5304 0.210714 15.0391 0.585786 15.4142C0.960859 15.7893 1.46957 16 2 16H14C14.5304 16 15.0391 15.7893 15.4142 15.4142C15.7893 15.0391 16 14.5304 16 14V11.3333C16 11.1565 15.9298 10.9869 15.8047 10.8619C15.6797 10.7369 15.5101 10.6667 15.3333 10.6667C15.1565 10.6667 14.987 10.7369 14.8619 10.8619C14.7369 10.9869 14.6667 11.1565 14.6667 11.3333Z",
|
|
@@ -4244,7 +4275,7 @@ var UploadIcon = (_a) => {
|
|
|
4244
4275
|
}
|
|
4245
4276
|
)
|
|
4246
4277
|
] }),
|
|
4247
|
-
/* @__PURE__ */ (0,
|
|
4278
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("clipPath", { id: "upload-clip", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
4248
4279
|
]
|
|
4249
4280
|
})
|
|
4250
4281
|
);
|
|
@@ -4252,10 +4283,10 @@ var UploadIcon = (_a) => {
|
|
|
4252
4283
|
UploadIcon.displayName = "UploadIcon";
|
|
4253
4284
|
|
|
4254
4285
|
// src/primitives/icon/svg/user-trust.tsx
|
|
4255
|
-
var
|
|
4286
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
4256
4287
|
var UserTrustIcon = (_a) => {
|
|
4257
4288
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4258
|
-
return /* @__PURE__ */ (0,
|
|
4289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
4259
4290
|
"svg",
|
|
4260
4291
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4261
4292
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4264,15 +4295,15 @@ var UserTrustIcon = (_a) => {
|
|
|
4264
4295
|
className
|
|
4265
4296
|
}, getIconA11yProps(title2)), props), {
|
|
4266
4297
|
children: [
|
|
4267
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4268
|
-
/* @__PURE__ */ (0,
|
|
4298
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("title", { children: title2 }) : null,
|
|
4299
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("g", { clipPath: "url(#clip0_user_trust)", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
4269
4300
|
"path",
|
|
4270
4301
|
{
|
|
4271
4302
|
d: "M22.5 30C14.2275 30 7.5 23.2725 7.5 15C7.5 6.7275 14.2275 0 22.5 0C30.7725 0 37.5 6.7275 37.5 15C37.5 23.2725 30.7725 30 22.5 30ZM22.5 2.5C15.6075 2.5 10 8.1075 10 15C10 21.8925 15.6075 27.5 22.5 27.5C29.3925 27.5 35 21.8925 35 15C35 8.1075 29.3925 2.5 22.5 2.5ZM2.5 58.75V57.5C2.5 46.9175 10.7675 38.1475 21.3225 37.535C22.0125 37.495 22.5375 36.905 22.4975 36.215C22.4575 35.5275 21.87 34.96 21.1775 35.04C9.3025 35.7275 0 45.5925 0 57.5V58.75C0 59.44 0.56 60 1.25 60C1.94 60 2.5 59.44 2.5 58.75ZM43.75 60C34.79 60 27.5 52.71 27.5 43.75C27.5 34.79 34.79 27.5 43.75 27.5C52.71 27.5 60 34.79 60 43.75C60 52.71 52.71 60 43.75 60ZM43.75 30C36.1675 30 30 36.17 30 43.75C30 51.33 36.1675 57.5 43.75 57.5C51.3325 57.5 57.5 51.33 57.5 43.75C57.5 36.17 51.3325 30 43.75 30ZM45.3375 48.66L52.095 42.125C52.59 41.645 52.605 40.8525 52.125 40.3575C51.6475 39.8625 50.8575 39.85 50.3575 40.3275L43.5925 46.8725C42.7525 47.7 41.38 47.705 40.535 46.8825L37.1275 43.52C36.6375 43.035 35.845 43.04 35.36 43.53C34.875 44.0225 34.88 44.815 35.3725 45.2975L38.7825 48.665C39.6875 49.55 40.875 49.9925 42.0625 49.9925C43.25 49.9925 44.4375 49.5475 45.3375 48.66Z",
|
|
4272
4303
|
fill: "currentColor"
|
|
4273
4304
|
}
|
|
4274
4305
|
) }),
|
|
4275
|
-
/* @__PURE__ */ (0,
|
|
4306
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("clipPath", { id: "clip0_user_trust", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("rect", { width: "60", height: "60", fill: "white" }) }) })
|
|
4276
4307
|
]
|
|
4277
4308
|
})
|
|
4278
4309
|
);
|
|
@@ -4280,10 +4311,10 @@ var UserTrustIcon = (_a) => {
|
|
|
4280
4311
|
UserTrustIcon.displayName = "UserTrustIcon";
|
|
4281
4312
|
|
|
4282
4313
|
// src/primitives/icon/svg/usdc.tsx
|
|
4283
|
-
var
|
|
4314
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
4284
4315
|
var UsdcIcon = (_a) => {
|
|
4285
4316
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4286
|
-
return /* @__PURE__ */ (0,
|
|
4317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
4287
4318
|
"svg",
|
|
4288
4319
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4289
4320
|
viewBox: "0 0 32 32",
|
|
@@ -4291,16 +4322,16 @@ var UsdcIcon = (_a) => {
|
|
|
4291
4322
|
fill: "none"
|
|
4292
4323
|
}, getIconA11yProps(title2)), props), {
|
|
4293
4324
|
children: [
|
|
4294
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4295
|
-
/* @__PURE__ */ (0,
|
|
4296
|
-
/* @__PURE__ */ (0,
|
|
4325
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("title", { children: title2 }) : null,
|
|
4326
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("circle", { cx: "16", cy: "16", r: "16", fill: "#2775CA" }),
|
|
4327
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
4297
4328
|
"path",
|
|
4298
4329
|
{
|
|
4299
4330
|
d: "M20.4 18.6c0-2.2-1.3-3-3.9-3.3-1.9-.3-2.3-.8-2.3-1.7s.7-1.5 2.1-1.5c1.2 0 1.9.4 2.2 1.4.1.2.2.3.4.3h1c.2 0 .4-.2.4-.4-.2-1.3-1.1-2.4-2.6-2.7v-1.5c0-.2-.2-.4-.5-.4h-.9c-.2 0-.4.2-.5.4v1.5c-1.7.3-2.8 1.4-2.8 2.9 0 2.1 1.3 2.8 3.9 3.2 1.7.3 2.3.8 2.3 1.8s-.9 1.7-2.2 1.7c-1.7 0-2.3-.7-2.5-1.6-.1-.2-.2-.3-.4-.3h-1c-.2 0-.4.2-.4.4.3 1.6 1.3 2.6 3.1 2.9v1.5c0 .2.2.4.5.4h.9c.2 0 .4-.2.5-.4v-1.5c1.7-.3 2.8-1.5 2.8-3.1z",
|
|
4300
4331
|
fill: "#fff"
|
|
4301
4332
|
}
|
|
4302
4333
|
),
|
|
4303
|
-
/* @__PURE__ */ (0,
|
|
4334
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
4304
4335
|
"path",
|
|
4305
4336
|
{
|
|
4306
4337
|
d: "M13.1 25.2c-4.6-1.6-7-6.7-5.3-11.3 1-2.7 3.1-4.5 5.7-5.3.2-.1.4-.3.4-.5v-.9c0-.2-.2-.4-.4-.4h-.1c-5.3 1.6-8.3 7.3-6.7 12.6 1 3.3 3.5 5.8 6.8 6.8.2.1.5-.1.5-.3v-.9c-.1-.3-.2-.5-.5-.6l-.4-.2zM19.3 6.8c-.2-.1-.5.1-.5.3v.9c0 .2.2.5.4.6 4.6 1.6 7 6.7 5.3 11.3-1 2.7-3.1 4.5-5.7 5.3-.2.1-.4.3-.4.5v.9c0 .2.2.4.4.4h.1c5.3-1.6 8.3-7.3 6.7-12.6-1-3.3-3.5-5.8-6.8-6.8l.5.2z",
|
|
@@ -4314,10 +4345,10 @@ var UsdcIcon = (_a) => {
|
|
|
4314
4345
|
UsdcIcon.displayName = "UsdcIcon";
|
|
4315
4346
|
|
|
4316
4347
|
// src/primitives/icon/svg/wallet.tsx
|
|
4317
|
-
var
|
|
4348
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
4318
4349
|
var WalletIcon = (_a) => {
|
|
4319
4350
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4320
|
-
return /* @__PURE__ */ (0,
|
|
4351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
|
|
4321
4352
|
"svg",
|
|
4322
4353
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4323
4354
|
viewBox: "0 0 24 24",
|
|
@@ -4325,8 +4356,8 @@ var WalletIcon = (_a) => {
|
|
|
4325
4356
|
fill: "none"
|
|
4326
4357
|
}, getIconA11yProps(title2)), props), {
|
|
4327
4358
|
children: [
|
|
4328
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4329
|
-
/* @__PURE__ */ (0,
|
|
4359
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("title", { children: title2 }) : null,
|
|
4360
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
4330
4361
|
"path",
|
|
4331
4362
|
{
|
|
4332
4363
|
d: "M21.5 6H4.5C3.354 6 2.279 5.433 1.628 4.501C2.262 3.594 3.313 3 4.5 3H23.5C23.776 3 24 2.776 24 2.5C24 2.224 23.776 2 23.5 2H4.5C2.015 2 0 4.015 0 6.5V17.5C0 19.985 2.015 22 4.5 22H21.5C22.881 22 24 20.881 24 19.5V8.5C24 7.119 22.881 6 21.5 6ZM23 19.5C23 20.327 22.327 21 21.5 21H4.5C2.57 21 1 19.43 1 17.5V6.5C1 6.152 1.051 5.816 1.146 5.499C1.992 6.441 3.21 7 4.5 7H21.5C22.327 7 23 7.673 23 8.5V19.5ZM21 14C21 14.552 20.552 15 20 15C19.448 15 19 14.552 19 14C19 13.448 19.448 13 20 13C20.552 13 21 13.448 21 14Z",
|
|
@@ -4340,10 +4371,10 @@ var WalletIcon = (_a) => {
|
|
|
4340
4371
|
WalletIcon.displayName = "WalletIcon";
|
|
4341
4372
|
|
|
4342
4373
|
// src/primitives/icon/svg/wallet-avatar.tsx
|
|
4343
|
-
var
|
|
4374
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
4344
4375
|
function WalletAvatarIcon(_a) {
|
|
4345
4376
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4346
|
-
return /* @__PURE__ */ (0,
|
|
4377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
4347
4378
|
"svg",
|
|
4348
4379
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4349
4380
|
fill: "none",
|
|
@@ -4351,9 +4382,9 @@ function WalletAvatarIcon(_a) {
|
|
|
4351
4382
|
viewBox: "0 0 16 16"
|
|
4352
4383
|
}, getIconA11yProps(title2)), props), {
|
|
4353
4384
|
children: [
|
|
4354
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4355
|
-
/* @__PURE__ */ (0,
|
|
4356
|
-
/* @__PURE__ */ (0,
|
|
4385
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("title", { children: title2 }) : null,
|
|
4386
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
|
|
4387
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
|
|
4357
4388
|
]
|
|
4358
4389
|
})
|
|
4359
4390
|
);
|
|
@@ -4361,10 +4392,10 @@ function WalletAvatarIcon(_a) {
|
|
|
4361
4392
|
WalletAvatarIcon.displayName = "WalletAvatarIcon";
|
|
4362
4393
|
|
|
4363
4394
|
// src/primitives/icon/svg/wallet-filled.tsx
|
|
4364
|
-
var
|
|
4395
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
4365
4396
|
var WalletFilledIcon = (_a) => {
|
|
4366
4397
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4367
|
-
return /* @__PURE__ */ (0,
|
|
4398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
4368
4399
|
"svg",
|
|
4369
4400
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4370
4401
|
viewBox: "0 0 14 14",
|
|
@@ -4372,8 +4403,8 @@ var WalletFilledIcon = (_a) => {
|
|
|
4372
4403
|
fill: "none"
|
|
4373
4404
|
}, getIconA11yProps(title2)), props), {
|
|
4374
4405
|
children: [
|
|
4375
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4376
|
-
/* @__PURE__ */ (0,
|
|
4406
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("title", { children: title2 }) : null,
|
|
4407
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
4377
4408
|
"path",
|
|
4378
4409
|
{
|
|
4379
4410
|
d: "M12.25 3.50008H2.91667C2.41558 3.50008 1.94133 3.28308 1.61292 2.91733C1.93375 2.55916 2.39983 2.33341 2.91667 2.33341H13.4167C13.7392 2.33341 14 2.07208 14 1.75008C14 1.42808 13.7392 1.16675 13.4167 1.16675H2.91667C1.30608 1.16675 0 2.47283 0 4.08342V9.91675C0 11.5273 1.30608 12.8334 2.91667 12.8334H12.25C13.2166 12.8334 14 12.05 14 11.0834V5.25008C14 4.2835 13.2166 3.50008 12.25 3.50008ZM12.8333 11.0834C12.8333 11.4048 12.572 11.6667 12.25 11.6667H2.91667C1.95183 11.6667 1.16667 10.8816 1.16667 9.91675V4.08225C1.66483 4.455 2.27733 4.66675 2.91667 4.66675H12.25C12.572 4.66675 12.8333 4.92866 12.8333 5.25008V11.0834ZM11.6667 8.16675C11.6667 8.48875 11.4053 8.75008 11.0833 8.75008C10.7613 8.75008 10.5 8.48875 10.5 8.16675C10.5 7.84475 10.7613 7.58342 11.0833 7.58342C11.4053 7.58342 11.6667 7.84475 11.6667 8.16675Z",
|
|
@@ -4387,10 +4418,10 @@ var WalletFilledIcon = (_a) => {
|
|
|
4387
4418
|
WalletFilledIcon.displayName = "WalletFilledIcon";
|
|
4388
4419
|
|
|
4389
4420
|
// src/primitives/icon/svg/paper-plane.tsx
|
|
4390
|
-
var
|
|
4421
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
4391
4422
|
var PaperPlaneIcon = (_a) => {
|
|
4392
4423
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4393
|
-
return /* @__PURE__ */ (0,
|
|
4424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
4394
4425
|
"svg",
|
|
4395
4426
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4396
4427
|
viewBox: "0 0 24 24",
|
|
@@ -4398,15 +4429,15 @@ var PaperPlaneIcon = (_a) => {
|
|
|
4398
4429
|
fill: "none"
|
|
4399
4430
|
}, getIconA11yProps(title2)), props), {
|
|
4400
4431
|
children: [
|
|
4401
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4402
|
-
/* @__PURE__ */ (0,
|
|
4432
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("title", { children: title2 }) : null,
|
|
4433
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("g", { clipPath: "url(#paper-plane-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
4403
4434
|
"path",
|
|
4404
4435
|
{
|
|
4405
4436
|
d: "M23.149 0.854808C22.43 0.135808 21.42 -0.152192 20.441 0.0858076L4.21901 4.30981C2.13901 4.59681 0.532009 6.10881 0.125009 8.16081C-0.184991 9.72081 0.349009 11.3698 1.56401 12.5848L3.00101 13.9388V18.5008C3.00101 19.1868 3.27901 19.8088 3.72801 20.2608C3.73001 20.2628 3.73101 20.2658 3.73301 20.2688C3.73501 20.2718 3.73801 20.2718 3.74101 20.2738C4.19301 20.7228 4.81501 21.0008 5.50101 21.0008H10.075L11.456 22.4768C12.438 23.4588 13.757 23.9978 15.059 23.9978C15.525 23.9978 15.989 23.9288 16.434 23.7868C18.218 23.2178 19.478 21.7408 19.713 19.9878L23.91 3.60081C24.154 2.60181 23.87 1.57681 23.15 0.855808L23.149 0.854808ZM2.26001 11.8668C1.29301 10.8988 0.861009 9.58681 1.10501 8.35481C1.42801 6.72781 2.70401 5.52881 4.41401 5.28881L20.686 1.05681C20.83 1.02181 20.976 1.00481 21.12 1.00481C21.441 1.00481 21.753 1.09781 22.035 1.25981L4.15001 19.1438C4.05601 18.9478 4.00001 18.7318 4.00001 18.5008V13.7228C4.00001 13.5848 3.94301 13.4528 3.84301 13.3588L2.26001 11.8668ZM22.939 3.35781L18.731 19.7958C18.538 21.2188 17.541 22.3828 16.128 22.8328C14.789 23.2588 13.232 22.8408 12.172 21.7808L10.654 20.1588C10.559 20.0578 10.427 20.0008 10.289 20.0008H5.50001C5.26901 20.0008 5.05301 19.9438 4.85701 19.8508L22.746 1.96181C22.984 2.37781 23.058 2.87381 22.939 3.35781Z",
|
|
4406
4437
|
fill: "currentColor"
|
|
4407
4438
|
}
|
|
4408
4439
|
) }),
|
|
4409
|
-
/* @__PURE__ */ (0,
|
|
4440
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("clipPath", { id: "paper-plane-clip", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
4410
4441
|
]
|
|
4411
4442
|
})
|
|
4412
4443
|
);
|
|
@@ -4414,10 +4445,10 @@ var PaperPlaneIcon = (_a) => {
|
|
|
4414
4445
|
PaperPlaneIcon.displayName = "PaperPlaneIcon";
|
|
4415
4446
|
|
|
4416
4447
|
// src/primitives/icon/svg/warning.tsx
|
|
4417
|
-
var
|
|
4448
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
4418
4449
|
var WarningIcon = (_a) => {
|
|
4419
4450
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4420
|
-
return /* @__PURE__ */ (0,
|
|
4451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
|
|
4421
4452
|
"svg",
|
|
4422
4453
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4423
4454
|
width: "14",
|
|
@@ -4428,8 +4459,8 @@ var WarningIcon = (_a) => {
|
|
|
4428
4459
|
className
|
|
4429
4460
|
}, getIconA11yProps(title2)), props), {
|
|
4430
4461
|
children: [
|
|
4431
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4432
|
-
/* @__PURE__ */ (0,
|
|
4462
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("title", { children: title2 }) : null,
|
|
4463
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
4433
4464
|
"path",
|
|
4434
4465
|
{
|
|
4435
4466
|
d: "M6.41665 8.1665V4.6665C6.41665 4.34567 6.67915 4.08317 6.99998 4.08317C7.32082 4.08317 7.58332 4.34567 7.58332 4.6665V8.1665C7.58332 8.48734 7.32082 8.74984 6.99998 8.74984C6.67915 8.74984 6.41665 8.48734 6.41665 8.1665ZM6.99998 9.33317C6.51582 9.33317 6.12498 9.724 6.12498 10.2082C6.12498 10.6923 6.51582 11.0832 6.99998 11.0832C7.48415 11.0832 7.87498 10.6923 7.87498 10.2082C7.87498 9.724 7.48415 9.33317 6.99998 9.33317ZM13.755 12.1798C13.3467 12.9673 12.4892 13.4165 11.4158 13.4165H2.58998C1.51082 13.4165 0.659151 12.9673 0.250818 12.1798C-0.163348 11.3865 -0.0466818 10.3715 0.542485 9.51984L5.23248 2.09984C5.64665 1.50484 6.29998 1.1665 6.99998 1.1665C7.69999 1.1665 8.35332 1.50484 8.74998 2.08234L13.4633 9.5315C14.0525 10.3832 14.1633 11.3923 13.7492 12.1798H13.755ZM12.5008 10.1848C12.5008 10.1848 12.4892 10.1732 12.4892 10.1615L7.78165 2.724C7.61248 2.48484 7.32082 2.33317 6.99998 2.33317C6.67915 2.33317 6.38749 2.48484 6.20665 2.74734L1.51082 10.1615C1.14915 10.6748 1.06748 11.2348 1.27748 11.6373C1.48165 12.034 1.94832 12.2498 2.58415 12.2498H11.4042C12.04 12.2498 12.5067 12.034 12.7108 11.6373C12.9208 11.2348 12.8392 10.6748 12.495 10.1848H12.5008Z",
|
|
@@ -4443,10 +4474,10 @@ var WarningIcon = (_a) => {
|
|
|
4443
4474
|
WarningIcon.displayName = "WarningIcon";
|
|
4444
4475
|
|
|
4445
4476
|
// src/primitives/icon/svg/warning-filled.tsx
|
|
4446
|
-
var
|
|
4477
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
4447
4478
|
var WarningFilledIcon = (_a) => {
|
|
4448
4479
|
var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
4449
|
-
return /* @__PURE__ */ (0,
|
|
4480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
4450
4481
|
"svg",
|
|
4451
4482
|
__spreadProps(__spreadValues(__spreadValues({
|
|
4452
4483
|
viewBox: "0 0 16 16",
|
|
@@ -4454,8 +4485,8 @@ var WarningFilledIcon = (_a) => {
|
|
|
4454
4485
|
fill: "none"
|
|
4455
4486
|
}, getIconA11yProps(title2)), props), {
|
|
4456
4487
|
children: [
|
|
4457
|
-
title2 ? /* @__PURE__ */ (0,
|
|
4458
|
-
/* @__PURE__ */ (0,
|
|
4488
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("title", { children: title2 }) : null,
|
|
4489
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
4459
4490
|
"path",
|
|
4460
4491
|
{
|
|
4461
4492
|
d: "M15.3869 10.22L10.0002 1.71332C9.5469 1.05999 8.79356 0.666656 8.00023 0.666656C7.20689 0.666656 6.45356 1.05332 5.98023 1.73332L0.620227 10.2067C-0.0597729 11.18 -0.18644 12.3467 0.286894 13.2467C0.75356 14.1467 1.73356 14.66 2.96023 14.66H13.0402C14.2736 14.66 15.2469 14.1467 15.7136 13.2467C16.1802 12.3467 16.0536 11.1867 15.3869 10.22ZM7.33356 4.66666C7.33356 4.29999 7.63356 3.99999 8.00023 3.99999C8.36689 3.99999 8.66689 4.29999 8.66689 4.66666V8.66666C8.66689 9.03332 8.36689 9.33332 8.00023 9.33332C7.63356 9.33332 7.33356 9.03332 7.33356 8.66666V4.66666ZM8.00023 12.6667C7.44689 12.6667 7.00023 12.22 7.00023 11.6667C7.00023 11.1133 7.44689 10.6667 8.00023 10.6667C8.55356 10.6667 9.00023 11.1133 9.00023 11.6667C9.00023 12.22 8.55356 12.6667 8.00023 12.6667Z",
|
|
@@ -4517,6 +4548,7 @@ var iconRegistry = {
|
|
|
4517
4548
|
"internet-security": InternetSecurityIcon,
|
|
4518
4549
|
"link-accounts": LinkAccountsIcon,
|
|
4519
4550
|
lock: LockIcon,
|
|
4551
|
+
"paper-mode": PaperModeIcon,
|
|
4520
4552
|
pencil: PencilIcon,
|
|
4521
4553
|
"play-square": PlaySquareIcon,
|
|
4522
4554
|
polygon: PolygonIcon,
|
|
@@ -4564,7 +4596,7 @@ var resolveIconStyle = (color, style) => {
|
|
|
4564
4596
|
};
|
|
4565
4597
|
|
|
4566
4598
|
// src/primitives/icon/index.tsx
|
|
4567
|
-
var
|
|
4599
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
4568
4600
|
var Icon = (_a) => {
|
|
4569
4601
|
var _b = _a, {
|
|
4570
4602
|
name,
|
|
@@ -4588,7 +4620,7 @@ var Icon = (_a) => {
|
|
|
4588
4620
|
}
|
|
4589
4621
|
const resolvedStyle = resolveIconStyle(color, style);
|
|
4590
4622
|
const resolvedClassName = cn(iconSizeClasses[size], className);
|
|
4591
|
-
return /* @__PURE__ */ (0,
|
|
4623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
4592
4624
|
Component,
|
|
4593
4625
|
__spreadValues({
|
|
4594
4626
|
color,
|
|
@@ -4600,7 +4632,7 @@ var Icon = (_a) => {
|
|
|
4600
4632
|
Icon.displayName = "Icon";
|
|
4601
4633
|
|
|
4602
4634
|
// src/geo-block-banner/index.tsx
|
|
4603
|
-
var
|
|
4635
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
4604
4636
|
var GeoBlockBanner = ({
|
|
4605
4637
|
venue,
|
|
4606
4638
|
termsUrl = AGG_TERMS_OF_SERVICE_URL,
|
|
@@ -4608,18 +4640,18 @@ var GeoBlockBanner = ({
|
|
|
4608
4640
|
}) => {
|
|
4609
4641
|
const labels = (0, import_hooks20.useLabels)();
|
|
4610
4642
|
const message = venue ? labels.trading.geoBlockVenueMessage(venue) : labels.trading.geoBlockGenericMessage;
|
|
4611
|
-
return /* @__PURE__ */ (0,
|
|
4643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
4612
4644
|
"div",
|
|
4613
4645
|
{
|
|
4614
4646
|
className: cn("flex items-center gap-5 rounded-agg-lg bg-agg-secondary-hover p-3", className),
|
|
4615
4647
|
role: "status",
|
|
4616
4648
|
children: [
|
|
4617
|
-
/* @__PURE__ */ (0,
|
|
4649
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("p", { className: "min-w-0 flex-1 text-agg-xs leading-agg-4 text-agg-foreground", children: [
|
|
4618
4650
|
message,
|
|
4619
|
-
/* @__PURE__ */ (0,
|
|
4651
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("a", { href: termsUrl, className: "underline", target: "_blank", rel: "noreferrer noopener", children: labels.trading.geoBlockTermsLink }),
|
|
4620
4652
|
labels.trading.geoBlockMessageSuffix
|
|
4621
4653
|
] }),
|
|
4622
|
-
/* @__PURE__ */ (0,
|
|
4654
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Icon, { name: "internet-security", className: "h-6 w-6 shrink-0 text-agg-muted-foreground" })
|
|
4623
4655
|
]
|
|
4624
4656
|
}
|
|
4625
4657
|
);
|
|
@@ -4698,7 +4730,7 @@ var getButtonClassName = ({
|
|
|
4698
4730
|
};
|
|
4699
4731
|
|
|
4700
4732
|
// src/primitives/button/index.tsx
|
|
4701
|
-
var
|
|
4733
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
4702
4734
|
var Button = (_a) => {
|
|
4703
4735
|
var _b = _a, {
|
|
4704
4736
|
children,
|
|
@@ -4729,7 +4761,7 @@ var Button = (_a) => {
|
|
|
4729
4761
|
features: { enableAnimations }
|
|
4730
4762
|
} = (0, import_hooks21.useSdkUiConfig)();
|
|
4731
4763
|
const isDisabled = resolveButtonIsDisabled({ disabled, isLoading });
|
|
4732
|
-
return /* @__PURE__ */ (0,
|
|
4764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
4733
4765
|
"button",
|
|
4734
4766
|
__spreadProps(__spreadValues({
|
|
4735
4767
|
type,
|
|
@@ -4743,7 +4775,7 @@ var Button = (_a) => {
|
|
|
4743
4775
|
"aria-busy": isLoading,
|
|
4744
4776
|
"aria-label": ariaLabel
|
|
4745
4777
|
}, other), {
|
|
4746
|
-
children: isLoading ? /* @__PURE__ */ (0,
|
|
4778
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
4747
4779
|
"span",
|
|
4748
4780
|
{
|
|
4749
4781
|
className: cn(
|
|
@@ -4754,9 +4786,9 @@ var Button = (_a) => {
|
|
|
4754
4786
|
),
|
|
4755
4787
|
"aria-hidden": "true"
|
|
4756
4788
|
}
|
|
4757
|
-
) : /* @__PURE__ */ (0,
|
|
4789
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
4758
4790
|
prefix != null ? prefix : null,
|
|
4759
|
-
/* @__PURE__ */ (0,
|
|
4791
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
4760
4792
|
"span",
|
|
4761
4793
|
{
|
|
4762
4794
|
className: cn(
|
|
@@ -4867,7 +4899,7 @@ var sanitizeCurrencyInputPastedValue = (input, parts, decimalPlaces) => {
|
|
|
4867
4899
|
};
|
|
4868
4900
|
|
|
4869
4901
|
// src/primitives/currency-input/index.tsx
|
|
4870
|
-
var
|
|
4902
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
4871
4903
|
var CurrencyInput = ({
|
|
4872
4904
|
value,
|
|
4873
4905
|
onChange,
|
|
@@ -4995,7 +5027,7 @@ var CurrencyInput = ({
|
|
|
4995
5027
|
onChange == null ? void 0 : onChange(nextValue);
|
|
4996
5028
|
onBlur == null ? void 0 : onBlur();
|
|
4997
5029
|
};
|
|
4998
|
-
return /* @__PURE__ */ (0,
|
|
5030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
4999
5031
|
"input",
|
|
5000
5032
|
{
|
|
5001
5033
|
ref: inputRef,
|
|
@@ -5043,7 +5075,7 @@ var resolveRemoteImageStatusFromSrc = (src) => {
|
|
|
5043
5075
|
};
|
|
5044
5076
|
|
|
5045
5077
|
// src/primitives/remote-image/index.tsx
|
|
5046
|
-
var
|
|
5078
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
5047
5079
|
var RemoteImage = ({
|
|
5048
5080
|
src,
|
|
5049
5081
|
alt,
|
|
@@ -5077,7 +5109,7 @@ var RemoteImage = ({
|
|
|
5077
5109
|
setStatus("error");
|
|
5078
5110
|
};
|
|
5079
5111
|
const sizeStyle = width !== void 0 || height !== void 0 ? { width: width != null ? width : void 0, height: height != null ? height : void 0 } : void 0;
|
|
5080
|
-
return /* @__PURE__ */ (0,
|
|
5112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
|
|
5081
5113
|
"div",
|
|
5082
5114
|
{
|
|
5083
5115
|
className: cn(containerClasses, classNames == null ? void 0 : classNames.root, className),
|
|
@@ -5094,14 +5126,14 @@ var RemoteImage = ({
|
|
|
5094
5126
|
"aria-label": ariaLabel,
|
|
5095
5127
|
title: title2,
|
|
5096
5128
|
children: [
|
|
5097
|
-
status === "loading" && /* @__PURE__ */ (0,
|
|
5098
|
-
status === "error" && /* @__PURE__ */ (0,
|
|
5129
|
+
status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
|
|
5130
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
5099
5131
|
"div",
|
|
5100
5132
|
{
|
|
5101
5133
|
className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
|
|
5102
5134
|
"aria-hidden": true,
|
|
5103
5135
|
"aria-errormessage": "Image failed to load",
|
|
5104
|
-
children: /* @__PURE__ */ (0,
|
|
5136
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
5105
5137
|
Icon,
|
|
5106
5138
|
{
|
|
5107
5139
|
name: "image",
|
|
@@ -5112,7 +5144,7 @@ var RemoteImage = ({
|
|
|
5112
5144
|
)
|
|
5113
5145
|
}
|
|
5114
5146
|
),
|
|
5115
|
-
isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0,
|
|
5147
|
+
isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
5116
5148
|
"img",
|
|
5117
5149
|
{
|
|
5118
5150
|
src,
|
|
@@ -5151,7 +5183,7 @@ var resolveVenueLogoIsColor = ({
|
|
|
5151
5183
|
};
|
|
5152
5184
|
|
|
5153
5185
|
// src/primitives/venue-logo/index.tsx
|
|
5154
|
-
var
|
|
5186
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
5155
5187
|
var VenueLogo = ({
|
|
5156
5188
|
venue,
|
|
5157
5189
|
variant = "icon",
|
|
@@ -5177,7 +5209,7 @@ var VenueLogo = ({
|
|
|
5177
5209
|
console.warn(`[AggUI] Unknown venue "${venue}" \u2014 using default logo`);
|
|
5178
5210
|
}
|
|
5179
5211
|
if (variant === "logo") {
|
|
5180
|
-
return /* @__PURE__ */ (0,
|
|
5212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
5181
5213
|
RemoteImage,
|
|
5182
5214
|
{
|
|
5183
5215
|
src: (_a = venueLogoUrlRegistry[venue]) != null ? _a : DEFAULT_VENUE_LOGO_URL,
|
|
@@ -5192,7 +5224,7 @@ var VenueLogo = ({
|
|
|
5192
5224
|
isColor,
|
|
5193
5225
|
isMonochromatic
|
|
5194
5226
|
});
|
|
5195
|
-
return /* @__PURE__ */ (0,
|
|
5227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
5196
5228
|
Component,
|
|
5197
5229
|
{
|
|
5198
5230
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
@@ -5250,7 +5282,7 @@ var resolveInlineAlertHasAction = ({
|
|
|
5250
5282
|
};
|
|
5251
5283
|
|
|
5252
5284
|
// src/primitives/inline-alert/index.tsx
|
|
5253
|
-
var
|
|
5285
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
5254
5286
|
var InlineAlert = ({
|
|
5255
5287
|
tone = INLINE_ALERT_DEFAULT_TONE,
|
|
5256
5288
|
variant,
|
|
@@ -5264,7 +5296,7 @@ var InlineAlert = ({
|
|
|
5264
5296
|
const resolvedVariant = resolveInlineAlertVariant({ tone, variant });
|
|
5265
5297
|
const hasAction = resolveInlineAlertHasAction({ actionLabel, onAction });
|
|
5266
5298
|
const { ariaLive, role } = INLINE_ALERT_LIVE_REGION_CONFIG[tone];
|
|
5267
|
-
return /* @__PURE__ */ (0,
|
|
5299
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
|
|
5268
5300
|
"div",
|
|
5269
5301
|
{
|
|
5270
5302
|
className: cn(
|
|
@@ -5276,7 +5308,7 @@ var InlineAlert = ({
|
|
|
5276
5308
|
"aria-live": ariaLive,
|
|
5277
5309
|
"aria-label": ariaLabel,
|
|
5278
5310
|
children: [
|
|
5279
|
-
/* @__PURE__ */ (0,
|
|
5311
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
5280
5312
|
Icon,
|
|
5281
5313
|
{
|
|
5282
5314
|
name: INLINE_ALERT_TONE_ICON_NAME[tone],
|
|
@@ -5284,14 +5316,14 @@ var InlineAlert = ({
|
|
|
5284
5316
|
"aria-hidden": "true"
|
|
5285
5317
|
}
|
|
5286
5318
|
),
|
|
5287
|
-
/* @__PURE__ */ (0,
|
|
5319
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
5288
5320
|
"div",
|
|
5289
5321
|
{
|
|
5290
5322
|
className: cn(
|
|
5291
5323
|
"min-w-0",
|
|
5292
5324
|
resolvedVariant === "plain" && !hasAction ? "flex-none text-center" : "flex-1"
|
|
5293
5325
|
),
|
|
5294
|
-
children: /* @__PURE__ */ (0,
|
|
5326
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
|
|
5295
5327
|
"div",
|
|
5296
5328
|
{
|
|
5297
5329
|
className: cn(
|
|
@@ -5300,14 +5332,14 @@ var InlineAlert = ({
|
|
|
5300
5332
|
resolvedVariant === "plain" && !hasAction ? "items-center" : null
|
|
5301
5333
|
),
|
|
5302
5334
|
children: [
|
|
5303
|
-
title2 ? /* @__PURE__ */ (0,
|
|
5304
|
-
/* @__PURE__ */ (0,
|
|
5335
|
+
title2 ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: title2 }) : null,
|
|
5336
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground wrap-break-word", children: message })
|
|
5305
5337
|
]
|
|
5306
5338
|
}
|
|
5307
5339
|
)
|
|
5308
5340
|
}
|
|
5309
5341
|
),
|
|
5310
|
-
hasAction ? /* @__PURE__ */ (0,
|
|
5342
|
+
hasAction ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
5311
5343
|
"button",
|
|
5312
5344
|
{
|
|
5313
5345
|
type: "button",
|
|
@@ -5345,7 +5377,7 @@ var resolveLoadingIconAriaLabel = ({
|
|
|
5345
5377
|
};
|
|
5346
5378
|
|
|
5347
5379
|
// src/primitives/loading-icon/index.tsx
|
|
5348
|
-
var
|
|
5380
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
5349
5381
|
var LoadingIcon = ({
|
|
5350
5382
|
size = LOADING_ICON_DEFAULT_SIZE,
|
|
5351
5383
|
variant = "default",
|
|
@@ -5356,7 +5388,7 @@ var LoadingIcon = ({
|
|
|
5356
5388
|
const {
|
|
5357
5389
|
features: { enableAnimations }
|
|
5358
5390
|
} = (0, import_hooks25.useSdkUiConfig)();
|
|
5359
|
-
return /* @__PURE__ */ (0,
|
|
5391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5360
5392
|
"span",
|
|
5361
5393
|
{
|
|
5362
5394
|
role: "status",
|
|
@@ -5369,7 +5401,7 @@ var LoadingIcon = ({
|
|
|
5369
5401
|
"inline-grid place-items-center text-agg-primary will-change-transform",
|
|
5370
5402
|
className
|
|
5371
5403
|
),
|
|
5372
|
-
children: /* @__PURE__ */ (0,
|
|
5404
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5373
5405
|
"svg",
|
|
5374
5406
|
{
|
|
5375
5407
|
viewBox: LOADING_ICON_SVG_VIEW_BOX,
|
|
@@ -5377,8 +5409,8 @@ var LoadingIcon = ({
|
|
|
5377
5409
|
"block",
|
|
5378
5410
|
variant === "prominent" ? LOADING_ICON_PROMINENT_FRAME_CLASS : iconSizeClasses[size]
|
|
5379
5411
|
),
|
|
5380
|
-
children: variant === "prominent" ? /* @__PURE__ */ (0,
|
|
5381
|
-
enableAnimations ? /* @__PURE__ */ (0,
|
|
5412
|
+
children: variant === "prominent" ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("g", { children: [
|
|
5413
|
+
enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5382
5414
|
"animateTransform",
|
|
5383
5415
|
{
|
|
5384
5416
|
attributeName: "transform",
|
|
@@ -5390,7 +5422,7 @@ var LoadingIcon = ({
|
|
|
5390
5422
|
repeatCount: "indefinite"
|
|
5391
5423
|
}
|
|
5392
5424
|
) : null,
|
|
5393
|
-
/* @__PURE__ */ (0,
|
|
5425
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5394
5426
|
"circle",
|
|
5395
5427
|
{
|
|
5396
5428
|
cx: "22",
|
|
@@ -5404,8 +5436,8 @@ var LoadingIcon = ({
|
|
|
5404
5436
|
strokeDasharray: LOADING_ICON_PROMINENT_DASHARRAY
|
|
5405
5437
|
}
|
|
5406
5438
|
)
|
|
5407
|
-
] }) : /* @__PURE__ */ (0,
|
|
5408
|
-
enableAnimations ? /* @__PURE__ */ (0,
|
|
5439
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("g", { children: [
|
|
5440
|
+
enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5409
5441
|
"animateTransform",
|
|
5410
5442
|
{
|
|
5411
5443
|
attributeName: "transform",
|
|
@@ -5417,7 +5449,7 @@ var LoadingIcon = ({
|
|
|
5417
5449
|
repeatCount: "indefinite"
|
|
5418
5450
|
}
|
|
5419
5451
|
) : null,
|
|
5420
|
-
/* @__PURE__ */ (0,
|
|
5452
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5421
5453
|
"circle",
|
|
5422
5454
|
{
|
|
5423
5455
|
cx: "22",
|
|
@@ -5429,8 +5461,8 @@ var LoadingIcon = ({
|
|
|
5429
5461
|
strokeLinecap: "round",
|
|
5430
5462
|
strokeDasharray: "60 100",
|
|
5431
5463
|
strokeDashoffset: "0",
|
|
5432
|
-
children: enableAnimations ? /* @__PURE__ */ (0,
|
|
5433
|
-
/* @__PURE__ */ (0,
|
|
5464
|
+
children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
|
|
5465
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5434
5466
|
"animate",
|
|
5435
5467
|
{
|
|
5436
5468
|
attributeName: "stroke-dasharray",
|
|
@@ -5439,7 +5471,7 @@ var LoadingIcon = ({
|
|
|
5439
5471
|
repeatCount: "indefinite"
|
|
5440
5472
|
}
|
|
5441
5473
|
),
|
|
5442
|
-
/* @__PURE__ */ (0,
|
|
5474
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
5443
5475
|
"animate",
|
|
5444
5476
|
{
|
|
5445
5477
|
attributeName: "stroke-dashoffset",
|
|
@@ -5484,7 +5516,7 @@ var resolveModalCloseIcon = ({
|
|
|
5484
5516
|
};
|
|
5485
5517
|
|
|
5486
5518
|
// src/primitives/modal/index.tsx
|
|
5487
|
-
var
|
|
5519
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
5488
5520
|
var Modal = ({
|
|
5489
5521
|
open,
|
|
5490
5522
|
onOpenChange,
|
|
@@ -5492,7 +5524,7 @@ var Modal = ({
|
|
|
5492
5524
|
"aria-label": _ariaLabel,
|
|
5493
5525
|
"aria-labelledby": _ariaLabelledBy
|
|
5494
5526
|
}) => {
|
|
5495
|
-
return /* @__PURE__ */ (0,
|
|
5527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Dialog.Root, { open, onOpenChange, children });
|
|
5496
5528
|
};
|
|
5497
5529
|
var ModalContainer = ({
|
|
5498
5530
|
children,
|
|
@@ -5507,8 +5539,8 @@ var ModalContainer = ({
|
|
|
5507
5539
|
} = (0, import_hooks26.useSdkUiConfig)();
|
|
5508
5540
|
const overlayAnimationClassName = resolveModalOverlayAnimationClassName(enableAnimations);
|
|
5509
5541
|
const panelAnimationClassName = resolveModalPanelAnimationClassName(enableAnimations);
|
|
5510
|
-
return /* @__PURE__ */ (0,
|
|
5511
|
-
/* @__PURE__ */ (0,
|
|
5542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(Dialog.Portal, { children: [
|
|
5543
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5512
5544
|
Dialog.Overlay,
|
|
5513
5545
|
{
|
|
5514
5546
|
className: cn(
|
|
@@ -5519,7 +5551,7 @@ var ModalContainer = ({
|
|
|
5519
5551
|
)
|
|
5520
5552
|
}
|
|
5521
5553
|
),
|
|
5522
|
-
/* @__PURE__ */ (0,
|
|
5554
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5523
5555
|
Dialog.Content,
|
|
5524
5556
|
{
|
|
5525
5557
|
className: cn(
|
|
@@ -5545,7 +5577,7 @@ var ModalContainer = ({
|
|
|
5545
5577
|
event.preventDefault();
|
|
5546
5578
|
}
|
|
5547
5579
|
},
|
|
5548
|
-
children: /* @__PURE__ */ (0,
|
|
5580
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5549
5581
|
"div",
|
|
5550
5582
|
{
|
|
5551
5583
|
className: cn(
|
|
@@ -5553,7 +5585,7 @@ var ModalContainer = ({
|
|
|
5553
5585
|
"items-end md:items-center",
|
|
5554
5586
|
"flex h-full min-h-0 w-full justify-center p-0 md:p-5"
|
|
5555
5587
|
),
|
|
5556
|
-
children: /* @__PURE__ */ (0,
|
|
5588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5557
5589
|
"div",
|
|
5558
5590
|
{
|
|
5559
5591
|
className: cn(
|
|
@@ -5595,12 +5627,12 @@ var ModalHeader = ({
|
|
|
5595
5627
|
features: { enableAnimations }
|
|
5596
5628
|
} = (0, import_hooks26.useSdkUiConfig)();
|
|
5597
5629
|
const labels = (0, import_hooks26.useLabels)();
|
|
5598
|
-
const defaultCloseIcon = /* @__PURE__ */ (0,
|
|
5630
|
+
const defaultCloseIcon = /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(CloseIcon, { className: "h-6 w-6" });
|
|
5599
5631
|
const resolvedCloseIcon = resolveModalCloseIcon({
|
|
5600
5632
|
closeIcon,
|
|
5601
5633
|
defaultCloseIcon
|
|
5602
5634
|
});
|
|
5603
|
-
return /* @__PURE__ */ (0,
|
|
5635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
5604
5636
|
"div",
|
|
5605
5637
|
{
|
|
5606
5638
|
className: cn(
|
|
@@ -5613,7 +5645,7 @@ var ModalHeader = ({
|
|
|
5613
5645
|
classNames == null ? void 0 : classNames.root
|
|
5614
5646
|
),
|
|
5615
5647
|
children: [
|
|
5616
|
-
/* @__PURE__ */ (0,
|
|
5648
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
5617
5649
|
"div",
|
|
5618
5650
|
{
|
|
5619
5651
|
className: cn(
|
|
@@ -5626,8 +5658,8 @@ var ModalHeader = ({
|
|
|
5626
5658
|
classNames == null ? void 0 : classNames.container
|
|
5627
5659
|
),
|
|
5628
5660
|
children: [
|
|
5629
|
-
leftElement ? /* @__PURE__ */ (0,
|
|
5630
|
-
/* @__PURE__ */ (0,
|
|
5661
|
+
leftElement ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_jsx_runtime116.Fragment, { children: leftElement }) : null,
|
|
5662
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
5631
5663
|
"div",
|
|
5632
5664
|
{
|
|
5633
5665
|
className: cn(
|
|
@@ -5636,7 +5668,7 @@ var ModalHeader = ({
|
|
|
5636
5668
|
classNames == null ? void 0 : classNames.titleContainer
|
|
5637
5669
|
),
|
|
5638
5670
|
children: [
|
|
5639
|
-
/* @__PURE__ */ (0,
|
|
5671
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5640
5672
|
Dialog.Title,
|
|
5641
5673
|
{
|
|
5642
5674
|
className: cn(
|
|
@@ -5650,7 +5682,7 @@ var ModalHeader = ({
|
|
|
5650
5682
|
children: title2
|
|
5651
5683
|
}
|
|
5652
5684
|
),
|
|
5653
|
-
subtitle ? /* @__PURE__ */ (0,
|
|
5685
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5654
5686
|
"span",
|
|
5655
5687
|
{
|
|
5656
5688
|
className: cn(
|
|
@@ -5664,9 +5696,9 @@ var ModalHeader = ({
|
|
|
5664
5696
|
]
|
|
5665
5697
|
}
|
|
5666
5698
|
),
|
|
5667
|
-
/* @__PURE__ */ (0,
|
|
5668
|
-
rightElement ? /* @__PURE__ */ (0,
|
|
5669
|
-
!hideClose && /* @__PURE__ */ (0,
|
|
5699
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "agg-modal-header-actions flex flex-row items-center justify-end gap-6", children: [
|
|
5700
|
+
rightElement ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_jsx_runtime116.Fragment, { children: rightElement }) : null,
|
|
5701
|
+
!hideClose && /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5670
5702
|
Dialog.Close,
|
|
5671
5703
|
{
|
|
5672
5704
|
className: cn(
|
|
@@ -5683,14 +5715,14 @@ var ModalHeader = ({
|
|
|
5683
5715
|
]
|
|
5684
5716
|
}
|
|
5685
5717
|
),
|
|
5686
|
-
children ? /* @__PURE__ */ (0,
|
|
5718
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: "agg-modal-header-extra", children }) : null
|
|
5687
5719
|
]
|
|
5688
5720
|
}
|
|
5689
5721
|
);
|
|
5690
5722
|
};
|
|
5691
5723
|
Modal.Header = ModalHeader;
|
|
5692
5724
|
var ModalBody = ({ children, classNames }) => {
|
|
5693
|
-
return /* @__PURE__ */ (0,
|
|
5725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5694
5726
|
"div",
|
|
5695
5727
|
{
|
|
5696
5728
|
className: cn(
|
|
@@ -5711,7 +5743,7 @@ var ModalFooter = ({
|
|
|
5711
5743
|
classNames,
|
|
5712
5744
|
hideBorder = false
|
|
5713
5745
|
}) => {
|
|
5714
|
-
return /* @__PURE__ */ (0,
|
|
5746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
5715
5747
|
"div",
|
|
5716
5748
|
{
|
|
5717
5749
|
className: cn(
|
|
@@ -5794,7 +5826,7 @@ var getTypographyClassName = ({
|
|
|
5794
5826
|
};
|
|
5795
5827
|
|
|
5796
5828
|
// src/primitives/typography/index.tsx
|
|
5797
|
-
var
|
|
5829
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
5798
5830
|
var Typography = ({
|
|
5799
5831
|
as: Component = "p",
|
|
5800
5832
|
variant = "body",
|
|
@@ -5802,14 +5834,23 @@ var Typography = ({
|
|
|
5802
5834
|
children,
|
|
5803
5835
|
"aria-label": ariaLabel
|
|
5804
5836
|
}) => {
|
|
5805
|
-
return /* @__PURE__ */ (0,
|
|
5837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Component, { className: getTypographyClassName({ className, variant }), "aria-label": ariaLabel, children });
|
|
5806
5838
|
};
|
|
5807
5839
|
Typography.displayName = "Typography";
|
|
5808
5840
|
|
|
5841
|
+
// src/primitives/toast/index.tsx
|
|
5842
|
+
var RadixToast = __toESM(require("@radix-ui/react-toast"));
|
|
5843
|
+
var import_react5 = require("react");
|
|
5844
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
5845
|
+
var ToastContext = (0, import_react5.createContext)(null);
|
|
5846
|
+
function useOptionalToast() {
|
|
5847
|
+
return (0, import_react5.useContext)(ToastContext);
|
|
5848
|
+
}
|
|
5849
|
+
|
|
5809
5850
|
// src/primitives/tooltip/index.tsx
|
|
5810
5851
|
var import_hooks27 = require("@agg-build/hooks");
|
|
5811
5852
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
5812
|
-
var
|
|
5853
|
+
var import_react6 = require("react");
|
|
5813
5854
|
|
|
5814
5855
|
// src/primitives/tooltip/tooltip.constants.ts
|
|
5815
5856
|
var tooltipSizeClasses = {
|
|
@@ -5841,7 +5882,7 @@ var resolveTooltipArrowDimensions = (size) => {
|
|
|
5841
5882
|
};
|
|
5842
5883
|
|
|
5843
5884
|
// src/primitives/tooltip/index.tsx
|
|
5844
|
-
var
|
|
5885
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
5845
5886
|
var Tooltip = ({
|
|
5846
5887
|
content,
|
|
5847
5888
|
children,
|
|
@@ -5857,24 +5898,24 @@ var Tooltip = ({
|
|
|
5857
5898
|
general: { rootClassName },
|
|
5858
5899
|
features: { enableAnimations }
|
|
5859
5900
|
} = (0, import_hooks27.useSdkUiConfig)();
|
|
5860
|
-
const trigger = (0,
|
|
5901
|
+
const trigger = (0, import_react6.useMemo)(() => {
|
|
5861
5902
|
if (children) return children;
|
|
5862
|
-
return /* @__PURE__ */ (0,
|
|
5903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
5863
5904
|
"button",
|
|
5864
5905
|
{
|
|
5865
5906
|
type: "button",
|
|
5866
5907
|
className: resolveTooltipTriggerClassName(classNames == null ? void 0 : classNames.trigger),
|
|
5867
5908
|
"aria-label": ariaLabel != null ? ariaLabel : defaultTooltipTriggerAriaLabel,
|
|
5868
|
-
children: /* @__PURE__ */ (0,
|
|
5909
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { name: "info", size: "small", className: cn(classNames == null ? void 0 : classNames.icon), "aria-hidden": true })
|
|
5869
5910
|
}
|
|
5870
5911
|
);
|
|
5871
5912
|
}, [children, classNames == null ? void 0 : classNames.trigger, classNames == null ? void 0 : classNames.icon, ariaLabel]);
|
|
5872
5913
|
const { width: arrowWidth, height: arrowHeight } = resolveTooltipArrowDimensions(size);
|
|
5873
5914
|
const arrowPoints = `0,0 ${arrowWidth},0 ${arrowWidth / 2},${arrowHeight}`;
|
|
5874
5915
|
const arrowBorderPath = `M0 0 L${arrowWidth / 2} ${arrowHeight} L${arrowWidth} 0`;
|
|
5875
|
-
return /* @__PURE__ */ (0,
|
|
5876
|
-
/* @__PURE__ */ (0,
|
|
5877
|
-
/* @__PURE__ */ (0,
|
|
5916
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(TooltipPrimitive.Root, { children: [
|
|
5917
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(TooltipPrimitive.Trigger, { asChild: true, children: trigger }),
|
|
5918
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
5878
5919
|
TooltipPrimitive.Content,
|
|
5879
5920
|
{
|
|
5880
5921
|
side,
|
|
@@ -5898,7 +5939,7 @@ var Tooltip = ({
|
|
|
5898
5939
|
classNames == null ? void 0 : classNames.content
|
|
5899
5940
|
),
|
|
5900
5941
|
children: [
|
|
5901
|
-
/* @__PURE__ */ (0,
|
|
5942
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(TooltipPrimitive.Arrow, { asChild: true, width: arrowWidth, height: arrowHeight, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
5902
5943
|
"svg",
|
|
5903
5944
|
{
|
|
5904
5945
|
width: arrowWidth,
|
|
@@ -5907,8 +5948,8 @@ var Tooltip = ({
|
|
|
5907
5948
|
"aria-hidden": "true",
|
|
5908
5949
|
className: cn("overflow-visible", classNames == null ? void 0 : classNames.arrow),
|
|
5909
5950
|
children: [
|
|
5910
|
-
/* @__PURE__ */ (0,
|
|
5911
|
-
/* @__PURE__ */ (0,
|
|
5951
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("polygon", { points: arrowPoints, className: "fill-agg-secondary" }),
|
|
5952
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
5912
5953
|
"path",
|
|
5913
5954
|
{
|
|
5914
5955
|
d: arrowBorderPath,
|
|
@@ -5938,7 +5979,7 @@ var requestAggDepositModalOpen = () => {
|
|
|
5938
5979
|
|
|
5939
5980
|
// src/trading/use-kalshi-kyc-flow.ts
|
|
5940
5981
|
var import_hooks28 = require("@agg-build/hooks");
|
|
5941
|
-
var
|
|
5982
|
+
var import_react7 = require("react");
|
|
5942
5983
|
var KYC_PENDING_STORAGE_KEY = "agg_kyc_pending";
|
|
5943
5984
|
var getKycPendingState = () => {
|
|
5944
5985
|
var _a, _b;
|
|
@@ -5969,13 +6010,13 @@ var useKalshiKycFlow = ({
|
|
|
5969
6010
|
onError
|
|
5970
6011
|
}) => {
|
|
5971
6012
|
const client = (0, import_hooks28.useAggClient)();
|
|
5972
|
-
const [isVerifyModalOpen, setIsVerifyModalOpen] = (0,
|
|
5973
|
-
const [showSuccessModal, setShowSuccessModal] = (0,
|
|
5974
|
-
const [isInitiating, setIsInitiating] = (0,
|
|
5975
|
-
const [needsDepositAddress, setNeedsDepositAddress] = (0,
|
|
5976
|
-
const initiationAttemptRef = (0,
|
|
6013
|
+
const [isVerifyModalOpen, setIsVerifyModalOpen] = (0, import_react7.useState)(false);
|
|
6014
|
+
const [showSuccessModal, setShowSuccessModal] = (0, import_react7.useState)(false);
|
|
6015
|
+
const [isInitiating, setIsInitiating] = (0, import_react7.useState)(false);
|
|
6016
|
+
const [needsDepositAddress, setNeedsDepositAddress] = (0, import_react7.useState)(false);
|
|
6017
|
+
const initiationAttemptRef = (0, import_react7.useRef)(0);
|
|
5977
6018
|
const { isReady, isTimedOut } = (0, import_hooks28.useDepositAddresses)({ enabled: needsDepositAddress, poll: true });
|
|
5978
|
-
const pendingState = (0,
|
|
6019
|
+
const pendingState = (0, import_react7.useMemo)(
|
|
5979
6020
|
() => ({
|
|
5980
6021
|
venue: "kalshi",
|
|
5981
6022
|
userId: userId != null ? userId : null,
|
|
@@ -5983,28 +6024,28 @@ var useKalshiKycFlow = ({
|
|
|
5983
6024
|
}),
|
|
5984
6025
|
[userId, walletAddress]
|
|
5985
6026
|
);
|
|
5986
|
-
const resetInitiation = (0,
|
|
6027
|
+
const resetInitiation = (0, import_react7.useCallback)(() => {
|
|
5987
6028
|
setIsInitiating(false);
|
|
5988
6029
|
setNeedsDepositAddress(false);
|
|
5989
6030
|
}, []);
|
|
5990
|
-
const closeVerifyModal = (0,
|
|
6031
|
+
const closeVerifyModal = (0, import_react7.useCallback)(() => {
|
|
5991
6032
|
initiationAttemptRef.current += 1;
|
|
5992
6033
|
clearKycPendingState();
|
|
5993
6034
|
resetInitiation();
|
|
5994
6035
|
setIsVerifyModalOpen(false);
|
|
5995
6036
|
}, [resetInitiation]);
|
|
5996
|
-
const closeSuccessModal = (0,
|
|
6037
|
+
const closeSuccessModal = (0, import_react7.useCallback)(() => {
|
|
5997
6038
|
setShowSuccessModal(false);
|
|
5998
6039
|
}, []);
|
|
5999
|
-
const openVerifyModal = (0,
|
|
6040
|
+
const openVerifyModal = (0, import_react7.useCallback)(() => {
|
|
6000
6041
|
setIsVerifyModalOpen(true);
|
|
6001
6042
|
}, []);
|
|
6002
|
-
const startVerification = (0,
|
|
6043
|
+
const startVerification = (0, import_react7.useCallback)(() => {
|
|
6003
6044
|
initiationAttemptRef.current += 1;
|
|
6004
6045
|
setIsInitiating(true);
|
|
6005
6046
|
setNeedsDepositAddress(true);
|
|
6006
6047
|
}, []);
|
|
6007
|
-
(0,
|
|
6048
|
+
(0, import_react7.useEffect)(() => {
|
|
6008
6049
|
if (!isInitiating || !isReady) return;
|
|
6009
6050
|
const attemptId = initiationAttemptRef.current;
|
|
6010
6051
|
const redirectUri = window.location.href;
|
|
@@ -6021,14 +6062,14 @@ var useKalshiKycFlow = ({
|
|
|
6021
6062
|
resetInitiation();
|
|
6022
6063
|
});
|
|
6023
6064
|
}, [client, isInitiating, isReady, onError, pendingState, resetInitiation]);
|
|
6024
|
-
(0,
|
|
6065
|
+
(0, import_react7.useEffect)(() => {
|
|
6025
6066
|
if (isTimedOut && isInitiating) {
|
|
6026
6067
|
clearKycPendingState();
|
|
6027
6068
|
resetInitiation();
|
|
6028
6069
|
onError == null ? void 0 : onError(new Error("Deposit address provisioning timed out"));
|
|
6029
6070
|
}
|
|
6030
6071
|
}, [isInitiating, isTimedOut, onError, resetInitiation]);
|
|
6031
|
-
(0,
|
|
6072
|
+
(0, import_react7.useEffect)(() => {
|
|
6032
6073
|
const storedPendingState = getKycPendingState();
|
|
6033
6074
|
const isMatchingSession = (storedPendingState == null ? void 0 : storedPendingState.venue) === "kalshi" && storedPendingState.userId === pendingState.userId && storedPendingState.walletAddress === pendingState.walletAddress;
|
|
6034
6075
|
if (isKalshiVerified && isMatchingSession) {
|
|
@@ -7618,7 +7659,7 @@ var isPercentageBelowMinimum = (value, minimumValue) => {
|
|
|
7618
7659
|
};
|
|
7619
7660
|
|
|
7620
7661
|
// src/trading/place-order/index.place-order.failure.tsx
|
|
7621
|
-
var
|
|
7662
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
7622
7663
|
var resolveFailureActionHandler = ({
|
|
7623
7664
|
action,
|
|
7624
7665
|
onDone,
|
|
@@ -7631,12 +7672,12 @@ var resolveFailureActionHandler = ({
|
|
|
7631
7672
|
};
|
|
7632
7673
|
var renderPartialFailureStep = (step) => {
|
|
7633
7674
|
const isWarningStep = step.tone === "warning" || step.tone === "error";
|
|
7634
|
-
return /* @__PURE__ */ (0,
|
|
7675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
7635
7676
|
"div",
|
|
7636
7677
|
{
|
|
7637
7678
|
className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
|
|
7638
7679
|
children: [
|
|
7639
|
-
/* @__PURE__ */ (0,
|
|
7680
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7640
7681
|
Icon,
|
|
7641
7682
|
{
|
|
7642
7683
|
name: isWarningStep ? "warning-filled" : "check-circle",
|
|
@@ -7645,8 +7686,8 @@ var renderPartialFailureStep = (step) => {
|
|
|
7645
7686
|
"aria-hidden": "true"
|
|
7646
7687
|
}
|
|
7647
7688
|
),
|
|
7648
|
-
/* @__PURE__ */ (0,
|
|
7649
|
-
step.venue ? /* @__PURE__ */ (0,
|
|
7689
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
|
|
7690
|
+
step.venue ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(VenueLogo, { venue: step.venue, size: "small", className: "h-4 w-4 shrink-0" }) : null
|
|
7650
7691
|
]
|
|
7651
7692
|
},
|
|
7652
7693
|
step.id
|
|
@@ -7665,10 +7706,10 @@ var PlaceOrderFailureView = ({
|
|
|
7665
7706
|
const shouldShowPartialFailureLayout = summary.kind === "partial_fill";
|
|
7666
7707
|
const failureStepGroups = shouldShowPartialFailureLayout ? groupPlaceOrderFailureSteps(summary.steps) : [];
|
|
7667
7708
|
if (shouldShowPartialFailureLayout) {
|
|
7668
|
-
return /* @__PURE__ */ (0,
|
|
7669
|
-
/* @__PURE__ */ (0,
|
|
7670
|
-
/* @__PURE__ */ (0,
|
|
7671
|
-
/* @__PURE__ */ (0,
|
|
7709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "agg-order-failure-body flex flex-col gap-6 p-5", children: [
|
|
7710
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "agg-order-failure-header flex flex-col gap-2", children: [
|
|
7711
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "agg-order-failure-market flex items-center gap-3", children: [
|
|
7712
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7672
7713
|
RemoteImage,
|
|
7673
7714
|
{
|
|
7674
7715
|
src: (_a = summary.eventImage) != null ? _a : null,
|
|
@@ -7676,12 +7717,12 @@ var PlaceOrderFailureView = ({
|
|
|
7676
7717
|
className: "h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
|
|
7677
7718
|
}
|
|
7678
7719
|
),
|
|
7679
|
-
/* @__PURE__ */ (0,
|
|
7720
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
|
|
7680
7721
|
] }),
|
|
7681
|
-
summary.eventSubtitle ? /* @__PURE__ */ (0,
|
|
7722
|
+
summary.eventSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventSubtitle }) : null
|
|
7682
7723
|
] }),
|
|
7683
|
-
/* @__PURE__ */ (0,
|
|
7684
|
-
/* @__PURE__ */ (0,
|
|
7724
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "flex flex-col gap-4", children: failureStepGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "flex flex-col gap-2", children: group.map((step) => renderPartialFailureStep(step)) }, `failure-group-${groupIndex}`)) }),
|
|
7725
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "flex items-center gap-4", children: summary.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7685
7726
|
Button,
|
|
7686
7727
|
{
|
|
7687
7728
|
variant: "tertiary",
|
|
@@ -7695,10 +7736,10 @@ var PlaceOrderFailureView = ({
|
|
|
7695
7736
|
)) })
|
|
7696
7737
|
] }) });
|
|
7697
7738
|
}
|
|
7698
|
-
return /* @__PURE__ */ (0,
|
|
7699
|
-
/* @__PURE__ */ (0,
|
|
7700
|
-
/* @__PURE__ */ (0,
|
|
7701
|
-
/* @__PURE__ */ (0,
|
|
7739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "agg-order-failure-body flex flex-col gap-6 p-5", children: [
|
|
7740
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "agg-order-failure-header flex flex-col gap-2", children: [
|
|
7741
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "agg-order-failure-market flex items-center gap-3", children: [
|
|
7742
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7702
7743
|
RemoteImage,
|
|
7703
7744
|
{
|
|
7704
7745
|
src: (_b = summary.eventImage) != null ? _b : null,
|
|
@@ -7706,11 +7747,11 @@ var PlaceOrderFailureView = ({
|
|
|
7706
7747
|
className: "h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
|
|
7707
7748
|
}
|
|
7708
7749
|
),
|
|
7709
|
-
/* @__PURE__ */ (0,
|
|
7750
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
|
|
7710
7751
|
] }),
|
|
7711
|
-
summary.eventSubtitle ? /* @__PURE__ */ (0,
|
|
7752
|
+
summary.eventSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventSubtitle }) : null
|
|
7712
7753
|
] }),
|
|
7713
|
-
/* @__PURE__ */ (0,
|
|
7754
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7714
7755
|
InlineAlert,
|
|
7715
7756
|
{
|
|
7716
7757
|
tone: "error",
|
|
@@ -7719,7 +7760,7 @@ var PlaceOrderFailureView = ({
|
|
|
7719
7760
|
message: tradingLabels.orderFailureDescription((_c = summary.errorMessage) != null ? _c : "")
|
|
7720
7761
|
}
|
|
7721
7762
|
),
|
|
7722
|
-
/* @__PURE__ */ (0,
|
|
7763
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "agg-order-failure-actions flex items-center gap-3", children: summary.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7723
7764
|
Button,
|
|
7724
7765
|
{
|
|
7725
7766
|
variant: action.variant === "retry" ? "primary" : "secondary",
|
|
@@ -7736,8 +7777,8 @@ var PlaceOrderFailureView = ({
|
|
|
7736
7777
|
PlaceOrderFailureView.displayName = "PlaceOrderFailureView";
|
|
7737
7778
|
|
|
7738
7779
|
// src/trading/place-order/index.place-order.success.tsx
|
|
7739
|
-
var
|
|
7740
|
-
var
|
|
7780
|
+
var import_react8 = require("react");
|
|
7781
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
7741
7782
|
var resolveBuyToWinLabel = (shares) => {
|
|
7742
7783
|
if (!shares) return "$0";
|
|
7743
7784
|
return shares.startsWith("$") ? shares : `$${shares}`;
|
|
@@ -7750,7 +7791,7 @@ var PlaceOrderSuccessView = ({
|
|
|
7750
7791
|
onShare: _onShare
|
|
7751
7792
|
}) => {
|
|
7752
7793
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
7753
|
-
const [isExecutionDetailsExpanded, setIsExecutionDetailsExpanded] = (0,
|
|
7794
|
+
const [isExecutionDetailsExpanded, setIsExecutionDetailsExpanded] = (0, import_react8.useState)(true);
|
|
7754
7795
|
const doneLabel = tradingLabels.orderDone;
|
|
7755
7796
|
const _shareLabel = (_a = tradingLabels.orderShare) != null ? _a : "Share";
|
|
7756
7797
|
const potentialReturnLabel = summary.potentialReturnLabel && tradingLabels.potentialReturnBonus ? tradingLabels.potentialReturnBonus(summary.potentialReturnLabel) : summary.potentialReturnLabel ? `+${summary.potentialReturnLabel} Better Payout` : null;
|
|
@@ -7768,10 +7809,10 @@ var PlaceOrderSuccessView = ({
|
|
|
7768
7809
|
const resolveStepIconClassName = (tone) => {
|
|
7769
7810
|
return tone === "warning" || tone === "error" ? "text-agg-warning" : "text-agg-primary";
|
|
7770
7811
|
};
|
|
7771
|
-
return /* @__PURE__ */ (0,
|
|
7772
|
-
summary.eventTitle ? /* @__PURE__ */ (0,
|
|
7773
|
-
/* @__PURE__ */ (0,
|
|
7774
|
-
/* @__PURE__ */ (0,
|
|
7812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-order-success-body flex flex-col gap-6 p-5", children: [
|
|
7813
|
+
summary.eventTitle ? /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-order-success-header flex flex-col gap-2", children: [
|
|
7814
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-order-success-market flex items-center gap-3", children: [
|
|
7815
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7775
7816
|
RemoteImage,
|
|
7776
7817
|
{
|
|
7777
7818
|
src: (_h = summary.eventImage) != null ? _h : null,
|
|
@@ -7779,12 +7820,12 @@ var PlaceOrderSuccessView = ({
|
|
|
7779
7820
|
className: "h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
|
|
7780
7821
|
}
|
|
7781
7822
|
),
|
|
7782
|
-
/* @__PURE__ */ (0,
|
|
7823
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
|
|
7783
7824
|
] }),
|
|
7784
|
-
summary.eventDateLabel ? /* @__PURE__ */ (0,
|
|
7825
|
+
summary.eventDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventDateLabel }) : null
|
|
7785
7826
|
] }) : null,
|
|
7786
|
-
executionStepGroups.length > 0 ? /* @__PURE__ */ (0,
|
|
7787
|
-
/* @__PURE__ */ (0,
|
|
7827
|
+
executionStepGroups.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-order-success-timeline flex flex-col gap-2", children: [
|
|
7828
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7788
7829
|
"div",
|
|
7789
7830
|
{
|
|
7790
7831
|
"aria-hidden": !isExecutionDetailsExpanded,
|
|
@@ -7797,12 +7838,12 @@ var PlaceOrderSuccessView = ({
|
|
|
7797
7838
|
"transition-[grid-template-rows,opacity] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"
|
|
7798
7839
|
)
|
|
7799
7840
|
),
|
|
7800
|
-
children: /* @__PURE__ */ (0,
|
|
7841
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "flex flex-col gap-4 pb-2", children: detailedStepGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "flex flex-col gap-2", children: group.map((step) => /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
7801
7842
|
"div",
|
|
7802
7843
|
{
|
|
7803
7844
|
className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
|
|
7804
7845
|
children: [
|
|
7805
|
-
/* @__PURE__ */ (0,
|
|
7846
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7806
7847
|
Icon,
|
|
7807
7848
|
{
|
|
7808
7849
|
name: resolveStepIconName(step.tone),
|
|
@@ -7811,8 +7852,8 @@ var PlaceOrderSuccessView = ({
|
|
|
7811
7852
|
"aria-hidden": "true"
|
|
7812
7853
|
}
|
|
7813
7854
|
),
|
|
7814
|
-
/* @__PURE__ */ (0,
|
|
7815
|
-
step.venue ? /* @__PURE__ */ (0,
|
|
7855
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
|
|
7856
|
+
step.venue ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7816
7857
|
VenueLogo,
|
|
7817
7858
|
{
|
|
7818
7859
|
venue: step.venue,
|
|
@@ -7826,7 +7867,7 @@ var PlaceOrderSuccessView = ({
|
|
|
7826
7867
|
)) }, `execution-group-${groupIndex}`)) }) })
|
|
7827
7868
|
}
|
|
7828
7869
|
),
|
|
7829
|
-
finalStep ? hasExecutionDetails ? /* @__PURE__ */ (0,
|
|
7870
|
+
finalStep ? hasExecutionDetails ? /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
7830
7871
|
"button",
|
|
7831
7872
|
{
|
|
7832
7873
|
type: "button",
|
|
@@ -7838,7 +7879,7 @@ var PlaceOrderSuccessView = ({
|
|
|
7838
7879
|
),
|
|
7839
7880
|
onClick: () => setIsExecutionDetailsExpanded((currentValue) => !currentValue),
|
|
7840
7881
|
children: [
|
|
7841
|
-
/* @__PURE__ */ (0,
|
|
7882
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7842
7883
|
Icon,
|
|
7843
7884
|
{
|
|
7844
7885
|
name: resolveStepIconName(finalStep.tone),
|
|
@@ -7847,8 +7888,8 @@ var PlaceOrderSuccessView = ({
|
|
|
7847
7888
|
"aria-hidden": "true"
|
|
7848
7889
|
}
|
|
7849
7890
|
),
|
|
7850
|
-
/* @__PURE__ */ (0,
|
|
7851
|
-
/* @__PURE__ */ (0,
|
|
7891
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "min-w-0 flex-1", children: finalStep.label }),
|
|
7892
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7852
7893
|
Icon,
|
|
7853
7894
|
{
|
|
7854
7895
|
name: isExecutionDetailsExpanded ? "chevron-up" : "chevron-down",
|
|
@@ -7859,8 +7900,8 @@ var PlaceOrderSuccessView = ({
|
|
|
7859
7900
|
)
|
|
7860
7901
|
]
|
|
7861
7902
|
}
|
|
7862
|
-
) : /* @__PURE__ */ (0,
|
|
7863
|
-
/* @__PURE__ */ (0,
|
|
7903
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
7904
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7864
7905
|
Icon,
|
|
7865
7906
|
{
|
|
7866
7907
|
name: resolveStepIconName(finalStep.tone),
|
|
@@ -7869,34 +7910,34 @@ var PlaceOrderSuccessView = ({
|
|
|
7869
7910
|
"aria-hidden": "true"
|
|
7870
7911
|
}
|
|
7871
7912
|
),
|
|
7872
|
-
/* @__PURE__ */ (0,
|
|
7913
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "min-w-0 flex-1", children: finalStep.label })
|
|
7873
7914
|
] }) : null
|
|
7874
7915
|
] }) : null,
|
|
7875
|
-
/* @__PURE__ */ (0,
|
|
7916
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
7876
7917
|
"div",
|
|
7877
7918
|
{
|
|
7878
7919
|
className: cn(
|
|
7879
7920
|
"agg-order-success-pill flex min-h-12 w-full items-center justify-center gap-2 rounded-agg-full px-6 py-2.5 text-center text-agg-base font-agg-bold leading-agg-6 text-agg-on-primary bg-agg-success"
|
|
7880
7921
|
),
|
|
7881
7922
|
children: [
|
|
7882
|
-
/* @__PURE__ */ (0,
|
|
7883
|
-
/* @__PURE__ */ (0,
|
|
7923
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon, { name: "success-check", size: "small", className: "h-4 w-4 shrink-0 text-current" }),
|
|
7924
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("span", { children: resolvedActionLabel })
|
|
7884
7925
|
]
|
|
7885
7926
|
}
|
|
7886
7927
|
),
|
|
7887
|
-
/* @__PURE__ */ (0,
|
|
7888
|
-
/* @__PURE__ */ (0,
|
|
7889
|
-
/* @__PURE__ */ (0,
|
|
7928
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-order-success-summary flex items-center justify-between gap-4", children: [
|
|
7929
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.amount(resolvedTradeSide) }),
|
|
7930
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-right text-[30px] font-agg-bold leading-[36px] text-agg-foreground", children: resolvedAmountLabel })
|
|
7890
7931
|
] }),
|
|
7891
|
-
/* @__PURE__ */ (0,
|
|
7892
|
-
/* @__PURE__ */ (0,
|
|
7893
|
-
/* @__PURE__ */ (0,
|
|
7932
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-order-success-summary flex items-center justify-between gap-4", children: [
|
|
7933
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.toWin(resolvedTradeSide) }),
|
|
7934
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-right text-[30px] font-agg-bold leading-[36px] text-agg-success", children: resolvedToWinLabel })
|
|
7894
7935
|
] }),
|
|
7895
|
-
summary.potentialReturnLabel ? /* @__PURE__ */ (0,
|
|
7896
|
-
/* @__PURE__ */ (0,
|
|
7897
|
-
/* @__PURE__ */ (0,
|
|
7936
|
+
summary.potentialReturnLabel ? /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex w-full flex-col items-center justify-center gap-1 overflow-hidden rounded-agg-lg border border-agg-primary/50 bg-gradient-to-b from-agg-primary/8 to-agg-primary/15 p-3 text-center", children: [
|
|
7937
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "bg-gradient-to-r from-agg-primary to-agg-primary-hover bg-clip-text text-agg-lg font-agg-bold leading-[28px] text-transparent", children: potentialReturnLabel }),
|
|
7938
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-xs leading-agg-4 text-agg-foreground", children: (_i = tradingLabels.withSmartRouting) != null ? _i : "with Smart Routing" })
|
|
7898
7939
|
] }) : null,
|
|
7899
|
-
/* @__PURE__ */ (0,
|
|
7940
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "agg-order-success-actions flex gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
7900
7941
|
Button,
|
|
7901
7942
|
{
|
|
7902
7943
|
variant: "secondary",
|
|
@@ -7912,7 +7953,7 @@ var PlaceOrderSuccessView = ({
|
|
|
7912
7953
|
PlaceOrderSuccessView.displayName = "PlaceOrderSuccessView";
|
|
7913
7954
|
|
|
7914
7955
|
// src/trading/place-order/index.tsx
|
|
7915
|
-
var
|
|
7956
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
7916
7957
|
var resolveRefetchedQuoteData = (result) => {
|
|
7917
7958
|
if (!result || typeof result !== "object" || !("data" in result)) return null;
|
|
7918
7959
|
const data = result.data;
|
|
@@ -7931,7 +7972,7 @@ var LoadingGlyph = ({
|
|
|
7931
7972
|
className,
|
|
7932
7973
|
enableAnimations
|
|
7933
7974
|
}) => {
|
|
7934
|
-
return /* @__PURE__ */ (0,
|
|
7975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
7935
7976
|
"span",
|
|
7936
7977
|
{
|
|
7937
7978
|
"aria-hidden": "true",
|
|
@@ -7952,24 +7993,24 @@ var PlaceOrderSlippageControl = ({
|
|
|
7952
7993
|
}) => {
|
|
7953
7994
|
var _a, _b;
|
|
7954
7995
|
const labels = (0, import_hooks29.useLabels)();
|
|
7955
|
-
const containerRef = (0,
|
|
7956
|
-
const triggerRef = (0,
|
|
7957
|
-
const inputRef = (0,
|
|
7958
|
-
const warningId = (0,
|
|
7996
|
+
const containerRef = (0, import_react10.useRef)(null);
|
|
7997
|
+
const triggerRef = (0, import_react10.useRef)(null);
|
|
7998
|
+
const inputRef = (0, import_react10.useRef)(null);
|
|
7999
|
+
const warningId = (0, import_react10.useId)();
|
|
7959
8000
|
const defaultValue = finalizePercentageValue(slippageDefaultValue);
|
|
7960
8001
|
const committedValue = finalizePercentageValue(slippageValue) || defaultValue;
|
|
7961
|
-
const [draftValue, setDraftValue] = (0,
|
|
7962
|
-
const [isEditing, setIsEditing] = (0,
|
|
8002
|
+
const [draftValue, setDraftValue] = (0, import_react10.useState)(committedValue);
|
|
8003
|
+
const [isEditing, setIsEditing] = (0, import_react10.useState)(
|
|
7963
8004
|
() => isPercentageBelowMinimum(committedValue, slippageMinimumValue)
|
|
7964
8005
|
);
|
|
7965
|
-
const [shouldFocusInput, setShouldFocusInput] = (0,
|
|
7966
|
-
(0,
|
|
8006
|
+
const [shouldFocusInput, setShouldFocusInput] = (0, import_react10.useState)(false);
|
|
8007
|
+
(0, import_react10.useEffect)(() => {
|
|
7967
8008
|
setDraftValue(committedValue);
|
|
7968
8009
|
if (isPercentageBelowMinimum(committedValue, slippageMinimumValue)) {
|
|
7969
8010
|
setIsEditing(true);
|
|
7970
8011
|
}
|
|
7971
8012
|
}, [committedValue, slippageMinimumValue]);
|
|
7972
|
-
(0,
|
|
8013
|
+
(0, import_react10.useEffect)(() => {
|
|
7973
8014
|
if (!shouldFocusInput) return;
|
|
7974
8015
|
requestAnimationFrame(() => {
|
|
7975
8016
|
var _a2, _b2;
|
|
@@ -7986,7 +8027,7 @@ var PlaceOrderSlippageControl = ({
|
|
|
7986
8027
|
Number(committedValue || slippageDefaultValue || DEFAULT_SLIPPAGE_VALUE)
|
|
7987
8028
|
);
|
|
7988
8029
|
const resolvedAutoLabel = labels.trading.resetSlippage;
|
|
7989
|
-
const resolvedWarningMessage = (0,
|
|
8030
|
+
const resolvedWarningMessage = (0, import_react10.useMemo)(() => {
|
|
7990
8031
|
if (isLowSlippage) {
|
|
7991
8032
|
return labels.trading.slippageLow(slippageMinimumValue);
|
|
7992
8033
|
}
|
|
@@ -8049,8 +8090,8 @@ var PlaceOrderSlippageControl = ({
|
|
|
8049
8090
|
if (!isEditing) return;
|
|
8050
8091
|
handleCommitDraft(false);
|
|
8051
8092
|
};
|
|
8052
|
-
return /* @__PURE__ */ (0,
|
|
8053
|
-
/* @__PURE__ */ (0,
|
|
8093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { ref: containerRef, className: "agg-slippage-control w-full", onBlur: handleContainerBlur, children: [
|
|
8094
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
8054
8095
|
"button",
|
|
8055
8096
|
{
|
|
8056
8097
|
ref: triggerRef,
|
|
@@ -8068,8 +8109,8 @@ var PlaceOrderSlippageControl = ({
|
|
|
8068
8109
|
),
|
|
8069
8110
|
onClick: handleToggleEditing,
|
|
8070
8111
|
children: [
|
|
8071
|
-
/* @__PURE__ */ (0,
|
|
8072
|
-
/* @__PURE__ */ (0,
|
|
8112
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "agg-slippage-label", children: collapsedLabel }),
|
|
8113
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8073
8114
|
Icon,
|
|
8074
8115
|
{
|
|
8075
8116
|
name: isEditing ? "chevron-up" : "pencil",
|
|
@@ -8081,7 +8122,7 @@ var PlaceOrderSlippageControl = ({
|
|
|
8081
8122
|
]
|
|
8082
8123
|
}
|
|
8083
8124
|
),
|
|
8084
|
-
/* @__PURE__ */ (0,
|
|
8125
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8085
8126
|
"div",
|
|
8086
8127
|
{
|
|
8087
8128
|
"aria-hidden": !isEditing,
|
|
@@ -8095,10 +8136,10 @@ var PlaceOrderSlippageControl = ({
|
|
|
8095
8136
|
"transition-[grid-template-rows,opacity,margin-top] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"
|
|
8096
8137
|
)
|
|
8097
8138
|
),
|
|
8098
|
-
children: /* @__PURE__ */ (0,
|
|
8099
|
-
/* @__PURE__ */ (0,
|
|
8100
|
-
/* @__PURE__ */ (0,
|
|
8101
|
-
/* @__PURE__ */ (0,
|
|
8139
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-slippage-editor-body flex flex-col gap-2", children: [
|
|
8140
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-slippage-input-row flex h-9 overflow-hidden rounded-agg-sm border border-agg-separator", children: [
|
|
8141
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-slippage-input-group flex min-w-0 flex-1 items-center gap-2 bg-agg-secondary px-3", children: [
|
|
8142
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8102
8143
|
"input",
|
|
8103
8144
|
{
|
|
8104
8145
|
ref: inputRef,
|
|
@@ -8113,7 +8154,7 @@ var PlaceOrderSlippageControl = ({
|
|
|
8113
8154
|
onKeyDown: handleInputKeyDown
|
|
8114
8155
|
}
|
|
8115
8156
|
),
|
|
8116
|
-
/* @__PURE__ */ (0,
|
|
8157
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8117
8158
|
"button",
|
|
8118
8159
|
{
|
|
8119
8160
|
type: "button",
|
|
@@ -8131,8 +8172,8 @@ var PlaceOrderSlippageControl = ({
|
|
|
8131
8172
|
}
|
|
8132
8173
|
)
|
|
8133
8174
|
] }),
|
|
8134
|
-
/* @__PURE__ */ (0,
|
|
8135
|
-
/* @__PURE__ */ (0,
|
|
8175
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "h-full w-px bg-agg-separator", "aria-hidden": "true" }),
|
|
8176
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8136
8177
|
"div",
|
|
8137
8178
|
{
|
|
8138
8179
|
className: "agg-slippage-suffix flex w-9 items-center justify-center bg-agg-secondary-hover text-agg-sm leading-agg-5 text-agg-muted-foreground",
|
|
@@ -8141,7 +8182,7 @@ var PlaceOrderSlippageControl = ({
|
|
|
8141
8182
|
}
|
|
8142
8183
|
)
|
|
8143
8184
|
] }),
|
|
8144
|
-
/* @__PURE__ */ (0,
|
|
8185
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8145
8186
|
"div",
|
|
8146
8187
|
{
|
|
8147
8188
|
"aria-hidden": !resolvedWarningMessage,
|
|
@@ -8155,13 +8196,13 @@ var PlaceOrderSlippageControl = ({
|
|
|
8155
8196
|
"transition-[grid-template-rows,opacity] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"
|
|
8156
8197
|
)
|
|
8157
8198
|
),
|
|
8158
|
-
children: /* @__PURE__ */ (0,
|
|
8199
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
8159
8200
|
"div",
|
|
8160
8201
|
{
|
|
8161
8202
|
id: warningId,
|
|
8162
8203
|
className: "agg-slippage-warning-message flex items-start gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
|
|
8163
8204
|
children: [
|
|
8164
|
-
/* @__PURE__ */ (0,
|
|
8205
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8165
8206
|
Icon,
|
|
8166
8207
|
{
|
|
8167
8208
|
name: "warning-filled",
|
|
@@ -8170,7 +8211,7 @@ var PlaceOrderSlippageControl = ({
|
|
|
8170
8211
|
color: "currentColor"
|
|
8171
8212
|
}
|
|
8172
8213
|
),
|
|
8173
|
-
/* @__PURE__ */ (0,
|
|
8214
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { children: resolvedWarningMessage != null ? resolvedWarningMessage : "" })
|
|
8174
8215
|
]
|
|
8175
8216
|
}
|
|
8176
8217
|
) })
|
|
@@ -8190,9 +8231,9 @@ var renderCardHeader = ({
|
|
|
8190
8231
|
onClose
|
|
8191
8232
|
}) => {
|
|
8192
8233
|
if (!headerTitle) return null;
|
|
8193
|
-
return /* @__PURE__ */ (0,
|
|
8194
|
-
/* @__PURE__ */ (0,
|
|
8195
|
-
/* @__PURE__ */ (0,
|
|
8234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("agg-order-panel-header flex flex-col gap-2", className), children: [
|
|
8235
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-market-summary flex items-center gap-3", children: [
|
|
8236
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8196
8237
|
RemoteImage,
|
|
8197
8238
|
{
|
|
8198
8239
|
src: headerImage,
|
|
@@ -8200,19 +8241,19 @@ var renderCardHeader = ({
|
|
|
8200
8241
|
className: "agg-order-market-image h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
|
|
8201
8242
|
}
|
|
8202
8243
|
),
|
|
8203
|
-
/* @__PURE__ */ (0,
|
|
8204
|
-
onClose ? /* @__PURE__ */ (0,
|
|
8244
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-order-market-title min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: headerTitle }),
|
|
8245
|
+
onClose ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8205
8246
|
"button",
|
|
8206
8247
|
{
|
|
8207
8248
|
type: "button",
|
|
8208
8249
|
className: "agg-order-close -mr-1 -mt-1 hidden shrink-0 cursor-pointer items-center justify-center p-1 text-agg-muted-foreground hover:text-agg-foreground sm:flex",
|
|
8209
8250
|
"aria-label": "Close",
|
|
8210
8251
|
onClick: onClose,
|
|
8211
|
-
children: /* @__PURE__ */ (0,
|
|
8252
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CloseIcon, { className: "h-5 w-5" })
|
|
8212
8253
|
}
|
|
8213
8254
|
) : null
|
|
8214
8255
|
] }),
|
|
8215
|
-
headerSubtitle ? /* @__PURE__ */ (0,
|
|
8256
|
+
headerSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-order-market-subtitle text-agg-base leading-agg-6 text-agg-foreground", children: headerSubtitle }) : null
|
|
8216
8257
|
] });
|
|
8217
8258
|
};
|
|
8218
8259
|
var PlaceOrderResolvedView = ({
|
|
@@ -8221,11 +8262,9 @@ var PlaceOrderResolvedView = ({
|
|
|
8221
8262
|
resolvedClaim,
|
|
8222
8263
|
className
|
|
8223
8264
|
}) => {
|
|
8224
|
-
var _a, _b, _c, _d, _e;
|
|
8225
8265
|
const labels = (0, import_hooks29.useLabels)();
|
|
8226
8266
|
const tradingLabels = labels.trading;
|
|
8227
|
-
|
|
8228
|
-
return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8229
8268
|
Card,
|
|
8230
8269
|
{
|
|
8231
8270
|
className: cn(
|
|
@@ -8234,19 +8273,19 @@ var PlaceOrderResolvedView = ({
|
|
|
8234
8273
|
classNames == null ? void 0 : classNames.root,
|
|
8235
8274
|
className
|
|
8236
8275
|
),
|
|
8237
|
-
children: /* @__PURE__ */ (0,
|
|
8238
|
-
/* @__PURE__ */ (0,
|
|
8239
|
-
/* @__PURE__ */ (0,
|
|
8276
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
|
|
8277
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
|
|
8278
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8240
8279
|
"div",
|
|
8241
8280
|
{
|
|
8242
8281
|
className: cn(
|
|
8243
8282
|
"flex h-15 w-15 items-center justify-center rounded-full",
|
|
8244
8283
|
"bg-agg-primary/15"
|
|
8245
8284
|
),
|
|
8246
|
-
children: /* @__PURE__ */ (0,
|
|
8285
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { name: "success-check", className: cn("h-6 w-6", "text-agg-primary") })
|
|
8247
8286
|
}
|
|
8248
8287
|
),
|
|
8249
|
-
/* @__PURE__ */ (0,
|
|
8288
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
8250
8289
|
"div",
|
|
8251
8290
|
{
|
|
8252
8291
|
className: cn(
|
|
@@ -8254,31 +8293,31 @@ var PlaceOrderResolvedView = ({
|
|
|
8254
8293
|
classNames == null ? void 0 : classNames.content
|
|
8255
8294
|
),
|
|
8256
8295
|
children: [
|
|
8257
|
-
tradingState.market ? /* @__PURE__ */ (0,
|
|
8258
|
-
tradingState.winningOutcome ? /* @__PURE__ */ (0,
|
|
8296
|
+
tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
|
|
8297
|
+
tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
|
|
8259
8298
|
]
|
|
8260
8299
|
}
|
|
8261
8300
|
)
|
|
8262
8301
|
] }),
|
|
8263
|
-
resolvedClaim ? /* @__PURE__ */ (0,
|
|
8264
|
-
/* @__PURE__ */ (0,
|
|
8265
|
-
/* @__PURE__ */ (0,
|
|
8266
|
-
/* @__PURE__ */ (0,
|
|
8267
|
-
/* @__PURE__ */ (0,
|
|
8268
|
-
resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0,
|
|
8269
|
-
/* @__PURE__ */ (0,
|
|
8270
|
-
/* @__PURE__ */ (0,
|
|
8302
|
+
resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
|
|
8303
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
|
|
8304
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
|
|
8305
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Typography, { variant: "body-strong", className: "text-center", children: tradingLabels.resolvedEarningsTitle }),
|
|
8306
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
8307
|
+
resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
8308
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { children: tradingLabels.resolvedResolutionDateLabel }),
|
|
8309
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
|
|
8271
8310
|
] }) : null,
|
|
8272
|
-
/* @__PURE__ */ (0,
|
|
8273
|
-
/* @__PURE__ */ (0,
|
|
8274
|
-
/* @__PURE__ */ (0,
|
|
8311
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
8312
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { children: tradingLabels.resolvedSharesLabel }),
|
|
8313
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
|
|
8275
8314
|
] }),
|
|
8276
|
-
/* @__PURE__ */ (0,
|
|
8277
|
-
/* @__PURE__ */ (0,
|
|
8278
|
-
/* @__PURE__ */ (0,
|
|
8315
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
8316
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { children: tradingLabels.resolvedTotalPayoutLabel }),
|
|
8317
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
|
|
8279
8318
|
] })
|
|
8280
8319
|
] }),
|
|
8281
|
-
resolvedClaim.onClaim ? /* @__PURE__ */ (0,
|
|
8320
|
+
resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8282
8321
|
Button,
|
|
8283
8322
|
{
|
|
8284
8323
|
size: "large",
|
|
@@ -8286,7 +8325,7 @@ var PlaceOrderResolvedView = ({
|
|
|
8286
8325
|
onClick: resolvedClaim.onClaim,
|
|
8287
8326
|
isLoading: resolvedClaim.isClaiming,
|
|
8288
8327
|
disabled: resolvedClaim.isClaiming,
|
|
8289
|
-
children:
|
|
8328
|
+
children: tradingLabels.claimWinnings
|
|
8290
8329
|
}
|
|
8291
8330
|
) : null
|
|
8292
8331
|
] })
|
|
@@ -8299,18 +8338,18 @@ var renderRouteBreakdownRow = (row) => {
|
|
|
8299
8338
|
var _a, _b;
|
|
8300
8339
|
const venueLabel = getTradingVenueLabel(row.venue);
|
|
8301
8340
|
const rowKey = `${row.venue}-${row.label}-${row.priceLabel}-${(_a = row.resultLabel) != null ? _a : ""}`;
|
|
8302
|
-
return /* @__PURE__ */ (0,
|
|
8341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
8303
8342
|
"div",
|
|
8304
8343
|
{
|
|
8305
8344
|
className: "agg-route-breakdown-row flex items-center justify-between gap-4 text-left",
|
|
8306
8345
|
children: [
|
|
8307
|
-
/* @__PURE__ */ (0,
|
|
8308
|
-
/* @__PURE__ */ (0,
|
|
8309
|
-
/* @__PURE__ */ (0,
|
|
8346
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-breakdown-market flex min-w-0 items-center gap-2", children: [
|
|
8347
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(VenueLogo, { venue: row.venue, className: "size-3!", ariaLabel: venueLabel }),
|
|
8348
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-route-breakdown-label truncate text-agg-sm leading-agg-5 text-agg-foreground", children: row.label })
|
|
8310
8349
|
] }),
|
|
8311
|
-
/* @__PURE__ */ (0,
|
|
8312
|
-
/* @__PURE__ */ (0,
|
|
8313
|
-
/* @__PURE__ */ (0,
|
|
8350
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-breakdown-value flex shrink-0 items-center gap-2 text-agg-sm leading-agg-5", children: [
|
|
8351
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-muted-foreground", children: row.priceLabel }),
|
|
8352
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-foreground", children: (_b = row.resultLabel) != null ? _b : "" })
|
|
8314
8353
|
] })
|
|
8315
8354
|
]
|
|
8316
8355
|
},
|
|
@@ -8328,7 +8367,7 @@ var renderRouteCard = ({
|
|
|
8328
8367
|
var _a, _b;
|
|
8329
8368
|
const showSplitDetails = isSelected && isExpanded && card.kind === "split" && !!((_a = card.rows) == null ? void 0 : _a.length);
|
|
8330
8369
|
const ariaLabel = [card.label, card.hint, card.value].filter(Boolean).join(" ");
|
|
8331
|
-
return /* @__PURE__ */ (0,
|
|
8370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8332
8371
|
"button",
|
|
8333
8372
|
{
|
|
8334
8373
|
type: "button",
|
|
@@ -8347,10 +8386,10 @@ var renderRouteCard = ({
|
|
|
8347
8386
|
isSelected && !card.isUnavailable ? "border border-agg-trade-highlight-border bg-linear-to-b from-agg-trade-highlight-surface-from to-agg-trade-highlight-surface-to" : "border-transparent bg-agg-secondary-hover"
|
|
8348
8387
|
),
|
|
8349
8388
|
onClick: () => onSelect(card.id),
|
|
8350
|
-
children: /* @__PURE__ */ (0,
|
|
8351
|
-
/* @__PURE__ */ (0,
|
|
8352
|
-
/* @__PURE__ */ (0,
|
|
8353
|
-
card.kind === "split" ? /* @__PURE__ */ (0,
|
|
8389
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
|
|
8390
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
|
|
8391
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
|
|
8392
|
+
card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8354
8393
|
Icon,
|
|
8355
8394
|
{
|
|
8356
8395
|
name: "sparkles-filled",
|
|
@@ -8361,7 +8400,7 @@ var renderRouteCard = ({
|
|
|
8361
8400
|
),
|
|
8362
8401
|
"aria-hidden": "true"
|
|
8363
8402
|
}
|
|
8364
|
-
) : card.venue ? /* @__PURE__ */ (0,
|
|
8403
|
+
) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8365
8404
|
VenueLogo,
|
|
8366
8405
|
{
|
|
8367
8406
|
venue: card.venue,
|
|
@@ -8369,10 +8408,10 @@ var renderRouteCard = ({
|
|
|
8369
8408
|
ariaLabel: getTradingVenueLabel(card.venue)
|
|
8370
8409
|
}
|
|
8371
8410
|
) : null,
|
|
8372
|
-
/* @__PURE__ */ (0,
|
|
8373
|
-
/* @__PURE__ */ (0,
|
|
8374
|
-
/* @__PURE__ */ (0,
|
|
8375
|
-
card.isUnavailable ? /* @__PURE__ */ (0,
|
|
8411
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
|
|
8412
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
|
8413
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
|
|
8414
|
+
card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8376
8415
|
Icon,
|
|
8377
8416
|
{
|
|
8378
8417
|
name: "lock",
|
|
@@ -8380,7 +8419,7 @@ var renderRouteCard = ({
|
|
|
8380
8419
|
className: "shrink-0 text-agg-muted-foreground",
|
|
8381
8420
|
"aria-hidden": "true"
|
|
8382
8421
|
}
|
|
8383
|
-
) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0,
|
|
8422
|
+
) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8384
8423
|
Icon,
|
|
8385
8424
|
{
|
|
8386
8425
|
name: showSplitDetails ? "chevron-up" : "chevron-down",
|
|
@@ -8390,10 +8429,10 @@ var renderRouteCard = ({
|
|
|
8390
8429
|
}
|
|
8391
8430
|
) : null
|
|
8392
8431
|
] }),
|
|
8393
|
-
card.hint ? /* @__PURE__ */ (0,
|
|
8432
|
+
card.hint ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
|
|
8394
8433
|
] })
|
|
8395
8434
|
] }),
|
|
8396
|
-
/* @__PURE__ */ (0,
|
|
8435
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8397
8436
|
"p",
|
|
8398
8437
|
{
|
|
8399
8438
|
className: cn(
|
|
@@ -8405,9 +8444,9 @@ var renderRouteCard = ({
|
|
|
8405
8444
|
}
|
|
8406
8445
|
)
|
|
8407
8446
|
] }),
|
|
8408
|
-
showSplitDetails ? /* @__PURE__ */ (0,
|
|
8409
|
-
/* @__PURE__ */ (0,
|
|
8410
|
-
/* @__PURE__ */ (0,
|
|
8447
|
+
showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
|
|
8448
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
|
|
8449
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
|
|
8411
8450
|
] }) : null
|
|
8412
8451
|
] })
|
|
8413
8452
|
}
|
|
@@ -8430,7 +8469,7 @@ var renderSubmissionSurface = ({
|
|
|
8430
8469
|
executionVenue: progressState.executionVenue,
|
|
8431
8470
|
labels: tradingLabels
|
|
8432
8471
|
});
|
|
8433
|
-
return /* @__PURE__ */ (0,
|
|
8472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8434
8473
|
Card,
|
|
8435
8474
|
{
|
|
8436
8475
|
className: cn(
|
|
@@ -8439,31 +8478,31 @@ var renderSubmissionSurface = ({
|
|
|
8439
8478
|
classNames == null ? void 0 : classNames.root,
|
|
8440
8479
|
className
|
|
8441
8480
|
),
|
|
8442
|
-
children: /* @__PURE__ */ (0,
|
|
8481
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("agg-order-submission-body flex flex-col gap-6 p-5", classNames == null ? void 0 : classNames.body), children: [
|
|
8443
8482
|
renderCardHeader({
|
|
8444
8483
|
className: classNames == null ? void 0 : classNames.header,
|
|
8445
8484
|
headerSubtitle,
|
|
8446
8485
|
headerImage,
|
|
8447
8486
|
headerTitle
|
|
8448
8487
|
}),
|
|
8449
|
-
/* @__PURE__ */ (0,
|
|
8450
|
-
/* @__PURE__ */ (0,
|
|
8451
|
-
/* @__PURE__ */ (0,
|
|
8452
|
-
/* @__PURE__ */ (0,
|
|
8488
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("agg-order-panel-content flex flex-col gap-6", classNames == null ? void 0 : classNames.content), children: [
|
|
8489
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-submission-status flex h-12 w-full items-center justify-center gap-3 rounded-agg-full bg-agg-primary-hover px-8 text-agg-base font-agg-bold leading-agg-6 text-agg-on-primary", children: [
|
|
8490
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(LoadingGlyph, { enableAnimations, className: "h-4 w-4 text-current" }),
|
|
8491
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { children: actionLabel })
|
|
8453
8492
|
] }),
|
|
8454
|
-
/* @__PURE__ */ (0,
|
|
8493
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8455
8494
|
"div",
|
|
8456
8495
|
{
|
|
8457
8496
|
className: "agg-order-submission-steps agg-order-submission-group flex flex-col gap-2",
|
|
8458
8497
|
"data-testid": "agg-order-submission-steps",
|
|
8459
8498
|
children: displayRows.map((step) => {
|
|
8460
|
-
return /* @__PURE__ */ (0,
|
|
8499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
8461
8500
|
"div",
|
|
8462
8501
|
{
|
|
8463
8502
|
className: "agg-order-submission-step flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
|
|
8464
8503
|
"data-status": step.status,
|
|
8465
8504
|
children: [
|
|
8466
|
-
step.status === "complete" ? /* @__PURE__ */ (0,
|
|
8505
|
+
step.status === "complete" ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8467
8506
|
Icon,
|
|
8468
8507
|
{
|
|
8469
8508
|
name: "check-circle",
|
|
@@ -8471,15 +8510,15 @@ var renderSubmissionSurface = ({
|
|
|
8471
8510
|
className: "h-3 w-3 shrink-0 text-agg-primary",
|
|
8472
8511
|
"aria-hidden": "true"
|
|
8473
8512
|
}
|
|
8474
|
-
) : /* @__PURE__ */ (0,
|
|
8513
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8475
8514
|
LoadingGlyph,
|
|
8476
8515
|
{
|
|
8477
8516
|
enableAnimations,
|
|
8478
8517
|
className: "h-3 w-3 shrink-0 text-agg-primary"
|
|
8479
8518
|
}
|
|
8480
8519
|
),
|
|
8481
|
-
/* @__PURE__ */ (0,
|
|
8482
|
-
step.venue ? /* @__PURE__ */ (0,
|
|
8520
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
|
|
8521
|
+
step.venue ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8483
8522
|
VenueLogo,
|
|
8484
8523
|
{
|
|
8485
8524
|
venue: step.venue,
|
|
@@ -8500,7 +8539,7 @@ var renderSubmissionSurface = ({
|
|
|
8500
8539
|
}
|
|
8501
8540
|
);
|
|
8502
8541
|
};
|
|
8503
|
-
var InitiateKycButton = ({ label: label2, onOpen }) => /* @__PURE__ */ (0,
|
|
8542
|
+
var InitiateKycButton = ({ label: label2, onOpen }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8504
8543
|
Button,
|
|
8505
8544
|
{
|
|
8506
8545
|
size: "large",
|
|
@@ -8517,35 +8556,35 @@ var KycVerifyModal = ({
|
|
|
8517
8556
|
isInitiating,
|
|
8518
8557
|
labels
|
|
8519
8558
|
}) => {
|
|
8520
|
-
return /* @__PURE__ */ (0,
|
|
8559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8521
8560
|
Modal,
|
|
8522
8561
|
{
|
|
8523
8562
|
open,
|
|
8524
8563
|
onOpenChange: (next) => {
|
|
8525
8564
|
onOpenChange(next);
|
|
8526
8565
|
},
|
|
8527
|
-
children: /* @__PURE__ */ (0,
|
|
8528
|
-
/* @__PURE__ */ (0,
|
|
8529
|
-
/* @__PURE__ */ (0,
|
|
8530
|
-
/* @__PURE__ */ (0,
|
|
8531
|
-
/* @__PURE__ */ (0,
|
|
8566
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(Modal.Container, { maxWidth: "480px", "aria-label": labels.title, children: [
|
|
8567
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Dialog2.Title, { className: "sr-only", children: labels.title }),
|
|
8568
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Dialog2.Description, { className: "sr-only", children: labels.description }),
|
|
8569
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(Modal.Body, { classNames: { root: "sm:px-10 sm:py-12" }, children: [
|
|
8570
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8532
8571
|
"button",
|
|
8533
8572
|
{
|
|
8534
8573
|
type: "button",
|
|
8535
8574
|
className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
|
|
8536
8575
|
onClick: () => onOpenChange(false),
|
|
8537
8576
|
"aria-label": "Close",
|
|
8538
|
-
children: /* @__PURE__ */ (0,
|
|
8577
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CloseIcon, { className: "h-6 w-6" })
|
|
8539
8578
|
}
|
|
8540
8579
|
),
|
|
8541
|
-
/* @__PURE__ */ (0,
|
|
8542
|
-
/* @__PURE__ */ (0,
|
|
8543
|
-
/* @__PURE__ */ (0,
|
|
8544
|
-
/* @__PURE__ */ (0,
|
|
8545
|
-
/* @__PURE__ */ (0,
|
|
8580
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col items-center gap-8 text-center", children: [
|
|
8581
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(UserTrustIcon, { className: "h-[60px] w-[60px]" }) }),
|
|
8582
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
|
|
8583
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.title }),
|
|
8584
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.description })
|
|
8546
8585
|
] }),
|
|
8547
|
-
/* @__PURE__ */ (0,
|
|
8548
|
-
/* @__PURE__ */ (0,
|
|
8586
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex w-full flex-col items-center gap-5", children: [
|
|
8587
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8549
8588
|
Button,
|
|
8550
8589
|
{
|
|
8551
8590
|
size: "large",
|
|
@@ -8556,7 +8595,7 @@ var KycVerifyModal = ({
|
|
|
8556
8595
|
children: labels.startVerification
|
|
8557
8596
|
}
|
|
8558
8597
|
),
|
|
8559
|
-
/* @__PURE__ */ (0,
|
|
8598
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8560
8599
|
"button",
|
|
8561
8600
|
{
|
|
8562
8601
|
type: "button",
|
|
@@ -8576,27 +8615,27 @@ var KycSuccessModal = ({
|
|
|
8576
8615
|
open,
|
|
8577
8616
|
onOpenChange,
|
|
8578
8617
|
labels
|
|
8579
|
-
}) => /* @__PURE__ */ (0,
|
|
8580
|
-
/* @__PURE__ */ (0,
|
|
8581
|
-
/* @__PURE__ */ (0,
|
|
8582
|
-
/* @__PURE__ */ (0,
|
|
8583
|
-
/* @__PURE__ */ (0,
|
|
8618
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(Modal.Container, { maxWidth: "480px", "aria-label": labels.title, children: [
|
|
8619
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Dialog2.Title, { className: "sr-only", children: labels.title }),
|
|
8620
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Dialog2.Description, { className: "sr-only", children: labels.description }),
|
|
8621
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(Modal.Body, { classNames: { root: "px-10 py-12" }, children: [
|
|
8622
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8584
8623
|
"button",
|
|
8585
8624
|
{
|
|
8586
8625
|
type: "button",
|
|
8587
8626
|
className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
|
|
8588
8627
|
onClick: () => onOpenChange(false),
|
|
8589
8628
|
"aria-label": "Close",
|
|
8590
|
-
children: /* @__PURE__ */ (0,
|
|
8629
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(CloseIcon, { className: "h-6 w-6" })
|
|
8591
8630
|
}
|
|
8592
8631
|
),
|
|
8593
|
-
/* @__PURE__ */ (0,
|
|
8594
|
-
/* @__PURE__ */ (0,
|
|
8595
|
-
/* @__PURE__ */ (0,
|
|
8596
|
-
/* @__PURE__ */ (0,
|
|
8597
|
-
/* @__PURE__ */ (0,
|
|
8632
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col items-center gap-8 text-center", children: [
|
|
8633
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
|
|
8634
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
|
|
8635
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.title }),
|
|
8636
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.description })
|
|
8598
8637
|
] }),
|
|
8599
|
-
/* @__PURE__ */ (0,
|
|
8638
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
8600
8639
|
Button,
|
|
8601
8640
|
{
|
|
8602
8641
|
variant: "secondary",
|
|
@@ -8613,7 +8652,7 @@ var PlaceOrder = ({
|
|
|
8613
8652
|
className,
|
|
8614
8653
|
classNames,
|
|
8615
8654
|
eventTradingState,
|
|
8616
|
-
executionMode
|
|
8655
|
+
executionMode,
|
|
8617
8656
|
isLoading = false,
|
|
8618
8657
|
isPrimaryActionDisabled = false,
|
|
8619
8658
|
isPrimaryActionLoading = false,
|
|
@@ -8622,6 +8661,7 @@ var PlaceOrder = ({
|
|
|
8622
8661
|
onClose,
|
|
8623
8662
|
onOutcomeChange,
|
|
8624
8663
|
onPrimaryAction,
|
|
8664
|
+
onBeforePrimaryAction,
|
|
8625
8665
|
onTabChange,
|
|
8626
8666
|
onSuccess,
|
|
8627
8667
|
onError,
|
|
@@ -8633,7 +8673,8 @@ var PlaceOrder = ({
|
|
|
8633
8673
|
const {
|
|
8634
8674
|
enableDebug: isExecutionDebugEnabled,
|
|
8635
8675
|
features: { enableAnimations, showFeesBreakdown },
|
|
8636
|
-
general: { locale }
|
|
8676
|
+
general: { locale },
|
|
8677
|
+
trading: { executionMode: configuredExecutionMode = "live" } = { executionMode: "live" }
|
|
8637
8678
|
} = (0, import_hooks29.useSdkUiConfig)();
|
|
8638
8679
|
const labels = (0, import_hooks29.useLabels)();
|
|
8639
8680
|
const tradingLabels = labels.trading;
|
|
@@ -8642,10 +8683,10 @@ var PlaceOrder = ({
|
|
|
8642
8683
|
const selectedEvent = (_a = tradingContext == null ? void 0 : tradingContext.selectedEvent) != null ? _a : null;
|
|
8643
8684
|
const selectedMarket = (_b = tradingContext == null ? void 0 : tradingContext.selectedMarket) != null ? _b : null;
|
|
8644
8685
|
const selectedOutcomeId = (_c = tradingContext == null ? void 0 : tradingContext.selectedOutcomeId) != null ? _c : null;
|
|
8645
|
-
const resolvedEventTradingState = (0,
|
|
8686
|
+
const resolvedEventTradingState = (0, import_react10.useMemo)(() => {
|
|
8646
8687
|
return eventTradingState != null ? eventTradingState : (0, import_hooks29.resolveEventTradingState)(selectedEvent);
|
|
8647
8688
|
}, [eventTradingState, selectedEvent]);
|
|
8648
|
-
const scopedSelectedEvent = (0,
|
|
8689
|
+
const scopedSelectedEvent = (0, import_react10.useMemo)(() => {
|
|
8649
8690
|
var _a2;
|
|
8650
8691
|
if (!selectedEvent) return null;
|
|
8651
8692
|
const primaryMarketId = (_a2 = resolvedEventTradingState.primaryMarket) == null ? void 0 : _a2.id;
|
|
@@ -8655,7 +8696,7 @@ var PlaceOrder = ({
|
|
|
8655
8696
|
);
|
|
8656
8697
|
return isSelectedEventInScope ? selectedEvent : null;
|
|
8657
8698
|
}, [(_d = resolvedEventTradingState.primaryMarket) == null ? void 0 : _d.id, selectedEvent]);
|
|
8658
|
-
const scopedSelectedMarket = (0,
|
|
8699
|
+
const scopedSelectedMarket = (0, import_react10.useMemo)(() => {
|
|
8659
8700
|
if (!selectedMarket) return resolvedEventTradingState.primaryMarket;
|
|
8660
8701
|
const isSelectedMarketInScope = resolvedEventTradingState.marketStates.some(
|
|
8661
8702
|
(item) => item.market.id === selectedMarket.id
|
|
@@ -8670,10 +8711,10 @@ var PlaceOrder = ({
|
|
|
8670
8711
|
(outcome) => outcome.label.trim().toLowerCase() === "yes"
|
|
8671
8712
|
)) != null ? _f : scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.venueMarketOutcomes[0]) != null ? _g : null;
|
|
8672
8713
|
const scopedSelectedOutcomeId = (_h = scopedSelectedOutcome == null ? void 0 : scopedSelectedOutcome.id) != null ? _h : null;
|
|
8673
|
-
const resolvedTradingState = (0,
|
|
8714
|
+
const resolvedTradingState = (0, import_react10.useMemo)(() => {
|
|
8674
8715
|
return (0, import_hooks29.resolveMarketTradingState)(scopedSelectedMarket);
|
|
8675
8716
|
}, [scopedSelectedMarket]);
|
|
8676
|
-
const resolvedReadOnlyMarket = (0,
|
|
8717
|
+
const resolvedReadOnlyMarket = (0, import_react10.useMemo)(() => {
|
|
8677
8718
|
var _a2;
|
|
8678
8719
|
if (resolvedEventTradingState.kind !== "resolved") {
|
|
8679
8720
|
return scopedSelectedMarket;
|
|
@@ -8684,10 +8725,10 @@ var PlaceOrder = ({
|
|
|
8684
8725
|
resolvedEventTradingState.primaryMarket,
|
|
8685
8726
|
scopedSelectedMarket
|
|
8686
8727
|
]);
|
|
8687
|
-
const resolvedReadOnlyTradingState = (0,
|
|
8728
|
+
const resolvedReadOnlyTradingState = (0, import_react10.useMemo)(() => {
|
|
8688
8729
|
return (0, import_hooks29.resolveMarketTradingState)(resolvedReadOnlyMarket);
|
|
8689
8730
|
}, [resolvedReadOnlyMarket]);
|
|
8690
|
-
const orderEligibility = (0,
|
|
8731
|
+
const orderEligibility = (0, import_react10.useMemo)(
|
|
8691
8732
|
() => (0, import_hooks29.resolveOrderEligibility)({
|
|
8692
8733
|
event: scopedSelectedEvent,
|
|
8693
8734
|
market: scopedSelectedMarket,
|
|
@@ -8698,13 +8739,14 @@ var PlaceOrder = ({
|
|
|
8698
8739
|
);
|
|
8699
8740
|
const isResolvedOutcomeCtaLocked = resolvedEventTradingState.kind === "resolved" || resolvedTradingState.kind === "resolved";
|
|
8700
8741
|
const { isAuthenticated, user } = (0, import_hooks29.useAggAuthContext)();
|
|
8701
|
-
const
|
|
8742
|
+
const resolvedExecutionMode = executionMode != null ? executionMode : configuredExecutionMode;
|
|
8743
|
+
const isPaperMode = resolvedExecutionMode === "paper";
|
|
8702
8744
|
const liveBalanceState = (0, import_hooks29.useAggBalanceState)();
|
|
8703
8745
|
const paperBalancesQuery = (0, import_hooks29.useManagedBalances)({
|
|
8704
8746
|
enabled: Boolean(isAuthenticated && isPaperMode),
|
|
8705
8747
|
mode: "paper"
|
|
8706
8748
|
});
|
|
8707
|
-
const paperTotalBalance = (0,
|
|
8749
|
+
const paperTotalBalance = (0, import_react10.useMemo)(() => {
|
|
8708
8750
|
var _a2, _b2;
|
|
8709
8751
|
const cash = (_b2 = (_a2 = paperBalancesQuery.balances) == null ? void 0 : _a2.cash) != null ? _b2 : [];
|
|
8710
8752
|
return cash.reduce((sum, token) => {
|
|
@@ -8739,36 +8781,37 @@ var PlaceOrder = ({
|
|
|
8739
8781
|
const clusterBestMidpointsByOutcomeId = (_i = clusterMidpointResult.bestMidpointsByOutcomeId) != null ? _i : clusterMidpointResult.prices;
|
|
8740
8782
|
const clusterBestMidpoint = clusterMidpointResult.bestMidpoint;
|
|
8741
8783
|
const clusterBestPricesRest = clusterMidpointResult.bestPrices;
|
|
8742
|
-
const clusterBestPrices = (0,
|
|
8784
|
+
const clusterBestPrices = (0, import_react10.useMemo)(
|
|
8743
8785
|
() => (0, import_hooks29.mergeBestPricesPreferringLive)(clusterBestPricesRest, wsBestPrices),
|
|
8744
8786
|
[clusterBestPricesRest, wsBestPrices]
|
|
8745
8787
|
);
|
|
8746
|
-
const outcomes = (0,
|
|
8788
|
+
const outcomes = (0, import_react10.useMemo)(
|
|
8747
8789
|
() => mapVenueMarketOutcomesToPlaceOrderOutcomes(scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.venueMarketOutcomes),
|
|
8748
8790
|
[scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.venueMarketOutcomes]
|
|
8749
8791
|
);
|
|
8750
|
-
const buyTabRef = (0,
|
|
8751
|
-
const sellTabRef = (0,
|
|
8752
|
-
const [internalTab, setInternalTab] = (0,
|
|
8753
|
-
const [internalAmount, setInternalAmount] = (0,
|
|
8754
|
-
const [sellFilledForOutcomeId, setSellFilledForOutcomeId] = (0,
|
|
8755
|
-
const [internalSlippage] = (0,
|
|
8756
|
-
const [isRoutesExpanded, setIsRoutesExpanded] = (0,
|
|
8757
|
-
const [selectedRouteCardId, setSelectedRouteCardId] = (0,
|
|
8758
|
-
const [isSplitDetailOpen, setIsSplitDetailOpen] = (0,
|
|
8759
|
-
const [submissionFeedback, setSubmissionFeedback] = (0,
|
|
8760
|
-
const [submissionProgressState, setSubmissionProgressState] = (0,
|
|
8761
|
-
const
|
|
8762
|
-
const
|
|
8763
|
-
const
|
|
8764
|
-
(0,
|
|
8792
|
+
const buyTabRef = (0, import_react10.useRef)(null);
|
|
8793
|
+
const sellTabRef = (0, import_react10.useRef)(null);
|
|
8794
|
+
const [internalTab, setInternalTab] = (0, import_react10.useState)("buy");
|
|
8795
|
+
const [internalAmount, setInternalAmount] = (0, import_react10.useState)(PLACE_ORDER_DEFAULT_AMOUNT);
|
|
8796
|
+
const [sellFilledForOutcomeId, setSellFilledForOutcomeId] = (0, import_react10.useState)(null);
|
|
8797
|
+
const [internalSlippage] = (0, import_react10.useState)(DEFAULT_SLIPPAGE_VALUE);
|
|
8798
|
+
const [isRoutesExpanded, setIsRoutesExpanded] = (0, import_react10.useState)(false);
|
|
8799
|
+
const [selectedRouteCardId, setSelectedRouteCardId] = (0, import_react10.useState)(null);
|
|
8800
|
+
const [isSplitDetailOpen, setIsSplitDetailOpen] = (0, import_react10.useState)(false);
|
|
8801
|
+
const [submissionFeedback, setSubmissionFeedback] = (0, import_react10.useState)(null);
|
|
8802
|
+
const [submissionProgressState, setSubmissionProgressState] = (0, import_react10.useState)(null);
|
|
8803
|
+
const [isBeforeActionPending, setIsBeforeActionPending] = (0, import_react10.useState)(false);
|
|
8804
|
+
const executionDebugStoreRef = (0, import_react10.useRef)(null);
|
|
8805
|
+
const executionDebugAttemptIdRef = (0, import_react10.useRef)(null);
|
|
8806
|
+
const submittedSelectionRef = (0, import_react10.useRef)(null);
|
|
8807
|
+
(0, import_react10.useEffect)(() => {
|
|
8765
8808
|
if (!isExecutionDebugEnabled) {
|
|
8766
8809
|
executionDebugStoreRef.current = null;
|
|
8767
8810
|
return;
|
|
8768
8811
|
}
|
|
8769
8812
|
executionDebugStoreRef.current = enableExecutionDebugInBrowser();
|
|
8770
8813
|
}, [isExecutionDebugEnabled]);
|
|
8771
|
-
(0,
|
|
8814
|
+
(0, import_react10.useEffect)(() => {
|
|
8772
8815
|
if (!isExecutionDebugEnabled) return;
|
|
8773
8816
|
const store = executionDebugStoreRef.current;
|
|
8774
8817
|
if (!store) return;
|
|
@@ -8781,7 +8824,7 @@ var PlaceOrder = ({
|
|
|
8781
8824
|
scopedSelectedOutcomeId
|
|
8782
8825
|
]);
|
|
8783
8826
|
const debouncedAmount = (0, import_hooks29.useDebouncedValue)(internalAmount, 300);
|
|
8784
|
-
const isSell = (0,
|
|
8827
|
+
const isSell = (0, import_react10.useMemo)(() => internalTab === "sell", [internalTab]);
|
|
8785
8828
|
const {
|
|
8786
8829
|
positions: executionPositions,
|
|
8787
8830
|
isLoading: isExecutionPositionsLoading,
|
|
@@ -8804,7 +8847,7 @@ var PlaceOrder = ({
|
|
|
8804
8847
|
mode: isPaperMode ? "paper" : void 0,
|
|
8805
8848
|
enabled: debouncedAmount > 0 && orderEligibility.canPlaceOrder
|
|
8806
8849
|
});
|
|
8807
|
-
const currentSellableShares = (0,
|
|
8850
|
+
const currentSellableShares = (0, import_react10.useMemo)(() => {
|
|
8808
8851
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
8809
8852
|
const sharesFromQuote = (_b2 = (_a2 = smartRoute.data) == null ? void 0 : _a2.positionAvailability) == null ? void 0 : _b2.totalSellableShares;
|
|
8810
8853
|
if (typeof sharesFromQuote === "number" && Number.isFinite(sharesFromQuote)) {
|
|
@@ -8841,12 +8884,12 @@ var PlaceOrder = ({
|
|
|
8841
8884
|
(_k = (_j = smartRoute.data) == null ? void 0 : _j.positionAvailability) == null ? void 0 : _k.totalSellableShares
|
|
8842
8885
|
]);
|
|
8843
8886
|
const isCurrentSellableSharesLoading = isSell && isAuthenticated && !(typeof ((_m = (_l = smartRoute.data) == null ? void 0 : _l.positionAvailability) == null ? void 0 : _m.totalSellableShares) === "number") && (isExecutionPositionsLoading || isExecutionPositionsFetching);
|
|
8844
|
-
const displayedCurrentSellableShares = (0,
|
|
8887
|
+
const displayedCurrentSellableShares = (0, import_react10.useMemo)(() => {
|
|
8845
8888
|
if (!Number.isFinite(currentSellableShares) || currentSellableShares <= 0) return 0;
|
|
8846
8889
|
return Math.floor(currentSellableShares * 100) / 100;
|
|
8847
8890
|
}, [currentSellableShares]);
|
|
8848
8891
|
const isAtMaxSellableShares = isSell && displayedCurrentSellableShares > 0 && Math.abs(internalAmount - displayedCurrentSellableShares) < 1e-9;
|
|
8849
|
-
(0,
|
|
8892
|
+
(0, import_react10.useEffect)(() => {
|
|
8850
8893
|
if (submissionProgressState != null) return;
|
|
8851
8894
|
if (!isSell || isCurrentSellableSharesLoading) return;
|
|
8852
8895
|
if (scopedSelectedOutcomeId === sellFilledForOutcomeId) return;
|
|
@@ -8862,7 +8905,7 @@ var PlaceOrder = ({
|
|
|
8862
8905
|
onAmountChange,
|
|
8863
8906
|
submissionProgressState
|
|
8864
8907
|
]);
|
|
8865
|
-
const routeCards = (0,
|
|
8908
|
+
const routeCards = (0, import_react10.useMemo)(
|
|
8866
8909
|
() => smartRoute.data ? buildLiveRouteCards({
|
|
8867
8910
|
eventVenues: scopedSelectedEvent == null ? void 0 : scopedSelectedEvent.venueMarkets.map((market) => market.venue),
|
|
8868
8911
|
labels: tradingLabels,
|
|
@@ -8871,7 +8914,7 @@ var PlaceOrder = ({
|
|
|
8871
8914
|
}) : [],
|
|
8872
8915
|
[smartRoute.data, tradingLabels, isSell, scopedSelectedEvent == null ? void 0 : scopedSelectedEvent.venueMarkets]
|
|
8873
8916
|
);
|
|
8874
|
-
const resolvedSelectedRouteCardId = (0,
|
|
8917
|
+
const resolvedSelectedRouteCardId = (0, import_react10.useMemo)(() => {
|
|
8875
8918
|
var _a2, _b2, _c2, _d2;
|
|
8876
8919
|
if (routeCards.length === 0) return null;
|
|
8877
8920
|
if (selectedRouteCardId && routeCards.some((card) => card.id === selectedRouteCardId && !card.isUnavailable)) {
|
|
@@ -8879,7 +8922,7 @@ var PlaceOrder = ({
|
|
|
8879
8922
|
}
|
|
8880
8923
|
return (_d2 = (_c2 = (_a2 = routeCards.find((card) => !card.isUnavailable)) == null ? void 0 : _a2.id) != null ? _c2 : (_b2 = routeCards[0]) == null ? void 0 : _b2.id) != null ? _d2 : null;
|
|
8881
8924
|
}, [routeCards, selectedRouteCardId]);
|
|
8882
|
-
(0,
|
|
8925
|
+
(0, import_react10.useEffect)(() => {
|
|
8883
8926
|
if (routeCards.length === 0) {
|
|
8884
8927
|
setSelectedRouteCardId(null);
|
|
8885
8928
|
setIsRoutesExpanded(false);
|
|
@@ -8891,22 +8934,22 @@ var PlaceOrder = ({
|
|
|
8891
8934
|
}
|
|
8892
8935
|
}, [resolvedSelectedRouteCardId, routeCards.length, selectedRouteCardId]);
|
|
8893
8936
|
const isSubmissionLocked = submissionProgressState != null;
|
|
8894
|
-
const isSubmissionLockedRef = (0,
|
|
8937
|
+
const isSubmissionLockedRef = (0, import_react10.useRef)(isSubmissionLocked);
|
|
8895
8938
|
isSubmissionLockedRef.current = isSubmissionLocked;
|
|
8896
|
-
(0,
|
|
8939
|
+
(0, import_react10.useEffect)(() => {
|
|
8897
8940
|
if (isSubmissionLockedRef.current) return;
|
|
8898
8941
|
setSubmissionFeedback(null);
|
|
8899
8942
|
setSubmissionProgressState(null);
|
|
8900
8943
|
}, [internalAmount, internalSlippage, internalTab, scopedSelectedOutcomeId]);
|
|
8901
8944
|
const orderedRouteCards = routeCards;
|
|
8902
8945
|
const selectedRouteCard = (_o = (_n = orderedRouteCards.find((card) => card.id === resolvedSelectedRouteCardId)) != null ? _n : orderedRouteCards[0]) != null ? _o : null;
|
|
8903
|
-
const isKalshiRoute = (0,
|
|
8946
|
+
const isKalshiRoute = (0, import_react10.useMemo)(() => {
|
|
8904
8947
|
if (selectedRouteCard) {
|
|
8905
8948
|
return selectedRouteCard.venue === "kalshi" || selectedRouteCard.quoteData.fills.some((f) => f.venue === "kalshi");
|
|
8906
8949
|
}
|
|
8907
8950
|
return (scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.venue) === "kalshi";
|
|
8908
8951
|
}, [selectedRouteCard, scopedSelectedMarket]);
|
|
8909
|
-
const isKalshiVerified = (0,
|
|
8952
|
+
const isKalshiVerified = (0, import_react10.useMemo)(() => {
|
|
8910
8953
|
var _a2;
|
|
8911
8954
|
const kalshiAccount = (_a2 = user == null ? void 0 : user.venueAccounts) == null ? void 0 : _a2.find((va) => va.venue === "kalshi");
|
|
8912
8955
|
return (kalshiAccount == null ? void 0 : kalshiAccount.kycStatus) === "verified";
|
|
@@ -8926,7 +8969,7 @@ var PlaceOrder = ({
|
|
|
8926
8969
|
walletAddress: (_p = (0, import_hooks29.getWalletAddressFromUserProfile)(user)) != null ? _p : null,
|
|
8927
8970
|
onError
|
|
8928
8971
|
});
|
|
8929
|
-
const handleRouteCardSelect = (0,
|
|
8972
|
+
const handleRouteCardSelect = (0, import_react10.useCallback)(
|
|
8930
8973
|
(cardId) => {
|
|
8931
8974
|
if (cardId === resolvedSelectedRouteCardId) {
|
|
8932
8975
|
const card = routeCards.find((c) => c.id === cardId);
|
|
@@ -8948,7 +8991,7 @@ var PlaceOrder = ({
|
|
|
8948
8991
|
const headerImage = (_w = (_v = scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.image) != null ? _v : scopedSelectedEvent == null ? void 0 : scopedSelectedEvent.image) != null ? _w : null;
|
|
8949
8992
|
const headerTitle = (_y = (_x = scopedSelectedEvent == null ? void 0 : scopedSelectedEvent.title) != null ? _x : scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.question) != null ? _y : "";
|
|
8950
8993
|
const headerSubtitle = (_z = scopedSelectedMarket == null ? void 0 : scopedSelectedMarket.question) != null ? _z : "";
|
|
8951
|
-
const buildExecutionSummary = (0,
|
|
8994
|
+
const buildExecutionSummary = (0, import_react10.useCallback)(
|
|
8952
8995
|
(quoteData, executionVenue, orderId, partialFillSummary) => {
|
|
8953
8996
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
8954
8997
|
if (!quoteData) return void 0;
|
|
@@ -9024,7 +9067,7 @@ var PlaceOrder = ({
|
|
|
9024
9067
|
tradingLabels
|
|
9025
9068
|
]
|
|
9026
9069
|
);
|
|
9027
|
-
(0,
|
|
9070
|
+
(0, import_react10.useEffect)(() => {
|
|
9028
9071
|
if (executionProgress.phase === "order_submitted") {
|
|
9029
9072
|
const submittedOrder = executionProgress.submittedOrders[0];
|
|
9030
9073
|
setSubmissionProgressState((prev) => {
|
|
@@ -9037,7 +9080,7 @@ var PlaceOrder = ({
|
|
|
9037
9080
|
});
|
|
9038
9081
|
}
|
|
9039
9082
|
}, [executionProgress.phase, executionProgress.submittedOrders]);
|
|
9040
|
-
(0,
|
|
9083
|
+
(0, import_react10.useEffect)(() => {
|
|
9041
9084
|
var _a2, _b2;
|
|
9042
9085
|
const dp = executionProgress.dagProgress;
|
|
9043
9086
|
if (!dp) return;
|
|
@@ -9088,7 +9131,7 @@ var PlaceOrder = ({
|
|
|
9088
9131
|
return __spreadProps(__spreadValues({}, prev), { dagProgress: dp });
|
|
9089
9132
|
});
|
|
9090
9133
|
}, [executionProgress.dagProgress, tradingLabels]);
|
|
9091
|
-
(0,
|
|
9134
|
+
(0, import_react10.useEffect)(() => {
|
|
9092
9135
|
const orderIds = submissionProgressState == null ? void 0 : submissionProgressState.orderIds;
|
|
9093
9136
|
if (!(orderIds == null ? void 0 : orderIds.length)) return;
|
|
9094
9137
|
const aggregateStatus = deriveAggregateOrderStatus(
|
|
@@ -9149,7 +9192,7 @@ var PlaceOrder = ({
|
|
|
9149
9192
|
tradingLabels
|
|
9150
9193
|
]);
|
|
9151
9194
|
const estDurationMs = (selectedRouteCard == null ? void 0 : selectedRouteCard.quoteData) && typeof selectedRouteCard.quoteData.estDurationMs === "number" ? selectedRouteCard.quoteData.estDurationMs : 6e4;
|
|
9152
|
-
(0,
|
|
9195
|
+
(0, import_react10.useEffect)(() => {
|
|
9153
9196
|
const phase = submissionProgressState == null ? void 0 : submissionProgressState.phase;
|
|
9154
9197
|
if (phase !== "submitting" && phase !== "executing") return;
|
|
9155
9198
|
const timeoutMs = Math.max(6e4, 2 * estDurationMs);
|
|
@@ -9164,7 +9207,7 @@ var PlaceOrder = ({
|
|
|
9164
9207
|
}, timeoutMs);
|
|
9165
9208
|
return () => clearTimeout(id);
|
|
9166
9209
|
}, [submissionProgressState == null ? void 0 : submissionProgressState.phase, estDurationMs]);
|
|
9167
|
-
(0,
|
|
9210
|
+
(0, import_react10.useEffect)(() => {
|
|
9168
9211
|
var _a2, _b2;
|
|
9169
9212
|
if (!submissionProgressState) return;
|
|
9170
9213
|
onExecutionStateChange == null ? void 0 : onExecutionStateChange(submissionProgressState);
|
|
@@ -9219,7 +9262,7 @@ var PlaceOrder = ({
|
|
|
9219
9262
|
const isBelowVenueMinimumFromQuote = isQuoteBelowVenueMinimum(activeQuoteData);
|
|
9220
9263
|
const isBelowMinimum = isBelowClientMinimum || isBelowVenueMinimumFromQuote;
|
|
9221
9264
|
const belowMinimumMessage = isBelowClientMinimum ? tradingLabels.minimumOrderAmount(MIN_BUY_ORDER_AMOUNT) : tradingLabels.minOrderSizeViolated;
|
|
9222
|
-
const quoteStatus = (0,
|
|
9265
|
+
const quoteStatus = (0, import_react10.useMemo)(() => {
|
|
9223
9266
|
if (!orderEligibility.canPlaceOrder) return void 0;
|
|
9224
9267
|
return resolvePlaceOrderQuoteStatus({
|
|
9225
9268
|
amount: internalAmount,
|
|
@@ -9234,7 +9277,7 @@ var PlaceOrder = ({
|
|
|
9234
9277
|
scopedSelectedMarket,
|
|
9235
9278
|
tradingLabels
|
|
9236
9279
|
]);
|
|
9237
|
-
const smartRouteErrorMessage = (0,
|
|
9280
|
+
const smartRouteErrorMessage = (0, import_react10.useMemo)(() => {
|
|
9238
9281
|
if (!smartRoute.error) return null;
|
|
9239
9282
|
return normalizePlaceOrderErrorMessage({
|
|
9240
9283
|
errorMessage: smartRoute.error.message,
|
|
@@ -9243,7 +9286,7 @@ var PlaceOrder = ({
|
|
|
9243
9286
|
});
|
|
9244
9287
|
}, [smartRoute.error, tradingLabels]);
|
|
9245
9288
|
const progressActionLabel = (internalTab === "buy" ? tradingLabels.buyingOutcome(selectedOutcomeLabel) : tradingLabels.sellingOutcome(selectedOutcomeLabel)).trim();
|
|
9246
|
-
const canRetryRemaining = (0,
|
|
9289
|
+
const canRetryRemaining = (0, import_react10.useMemo)(() => {
|
|
9247
9290
|
const remaining = getPlaceOrderUnfilledRemaining({
|
|
9248
9291
|
originalAmount: internalAmount,
|
|
9249
9292
|
tradeSide: internalTab,
|
|
@@ -9253,7 +9296,7 @@ var PlaceOrder = ({
|
|
|
9253
9296
|
return remaining >= minRemainder;
|
|
9254
9297
|
}, [executionProgress.terminalOrderEvents, internalAmount, internalTab, isSell]);
|
|
9255
9298
|
const PARTIAL_FILL_AUTO_SUCCESS_THRESHOLD = 0.95;
|
|
9256
|
-
const shouldAutoSkipPartialFill = (0,
|
|
9299
|
+
const shouldAutoSkipPartialFill = (0, import_react10.useMemo)(() => {
|
|
9257
9300
|
if (internalAmount <= 0) return false;
|
|
9258
9301
|
const remaining = getPlaceOrderUnfilledRemaining({
|
|
9259
9302
|
originalAmount: internalAmount,
|
|
@@ -9264,7 +9307,7 @@ var PlaceOrder = ({
|
|
|
9264
9307
|
const fillRatio = filled / internalAmount;
|
|
9265
9308
|
return fillRatio >= PARTIAL_FILL_AUTO_SUCCESS_THRESHOLD || !canRetryRemaining;
|
|
9266
9309
|
}, [canRetryRemaining, executionProgress.terminalOrderEvents, internalAmount, internalTab]);
|
|
9267
|
-
const failureSummary = (0,
|
|
9310
|
+
const failureSummary = (0, import_react10.useMemo)(() => {
|
|
9268
9311
|
var _a2;
|
|
9269
9312
|
if ((submissionProgressState == null ? void 0 : submissionProgressState.phase) !== "failed") return void 0;
|
|
9270
9313
|
return buildPlaceOrderFailureSummary({
|
|
@@ -9293,7 +9336,7 @@ var PlaceOrder = ({
|
|
|
9293
9336
|
submissionProgressState,
|
|
9294
9337
|
tradingLabels
|
|
9295
9338
|
]);
|
|
9296
|
-
const displayedToWinHint = (0,
|
|
9339
|
+
const displayedToWinHint = (0, import_react10.useMemo)(() => {
|
|
9297
9340
|
var _a2, _b2, _c2, _d2;
|
|
9298
9341
|
if (!selectedRouteCard) return "";
|
|
9299
9342
|
if (selectedRouteCard.isUnavailable) {
|
|
@@ -9304,12 +9347,12 @@ var PlaceOrder = ({
|
|
|
9304
9347
|
}, [selectedRouteCard, tradingLabels]);
|
|
9305
9348
|
const displayedToWinValue = (_C = selectedRouteCard == null ? void 0 : selectedRouteCard.numericValue) != null ? _C : 0;
|
|
9306
9349
|
const activeFeeBreakdown = activeQuoteData == null ? void 0 : activeQuoteData.feeBreakdown;
|
|
9307
|
-
const estimatedFeesValue = (0,
|
|
9350
|
+
const estimatedFeesValue = (0, import_react10.useMemo)(() => {
|
|
9308
9351
|
if (!activeFeeBreakdown) return null;
|
|
9309
9352
|
const totalFees = activeFeeBreakdown.venueFees + activeFeeBreakdown.bridgeFees + activeFeeBreakdown.executionGas;
|
|
9310
9353
|
return formatUsd(totalFees, { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
9311
9354
|
}, [activeFeeBreakdown]);
|
|
9312
|
-
const feeBreakdownRows = (0,
|
|
9355
|
+
const feeBreakdownRows = (0, import_react10.useMemo)(() => {
|
|
9313
9356
|
if (!activeFeeBreakdown) return [];
|
|
9314
9357
|
return [
|
|
9315
9358
|
{
|
|
@@ -9343,16 +9386,16 @@ var PlaceOrder = ({
|
|
|
9343
9386
|
}
|
|
9344
9387
|
];
|
|
9345
9388
|
}, [activeFeeBreakdown, tradingLabels]);
|
|
9346
|
-
const isActionLoading = isPrimaryActionLoading || executeManaged.isPending;
|
|
9389
|
+
const isActionLoading = isPrimaryActionLoading || executeManaged.isPending || isBeforeActionPending;
|
|
9347
9390
|
const selectedRouteGeoBlocked = (_D = selectedRouteCard == null ? void 0 : selectedRouteCard.isUnavailable) != null ? _D : false;
|
|
9348
|
-
const geoBlockedVenuesFromWarnings = (0,
|
|
9391
|
+
const geoBlockedVenuesFromWarnings = (0, import_react10.useMemo)(
|
|
9349
9392
|
() => {
|
|
9350
9393
|
var _a2;
|
|
9351
9394
|
return extractGeoBlockedVenues((_a2 = smartRoute.data) == null ? void 0 : _a2.warnings);
|
|
9352
9395
|
},
|
|
9353
9396
|
[(_E = smartRoute.data) == null ? void 0 : _E.warnings]
|
|
9354
9397
|
);
|
|
9355
|
-
const isPrimaryVenueGeoBlocked = (0,
|
|
9398
|
+
const isPrimaryVenueGeoBlocked = (0, import_react10.useMemo)(() => {
|
|
9356
9399
|
var _a2, _b2;
|
|
9357
9400
|
if (!selectedRouteCard || selectedRouteCard.isUnavailable) return false;
|
|
9358
9401
|
const fills = (_b2 = (_a2 = selectedRouteCard.quoteData) == null ? void 0 : _a2.fills) != null ? _b2 : [];
|
|
@@ -9363,7 +9406,7 @@ var PlaceOrder = ({
|
|
|
9363
9406
|
const isActionDisabled = isPrimaryActionDisabled || !orderEligibility.canPlaceOrder || isActionLoading || !hasEnteredAmount || !scopedSelectedMarket || isInsufficientBalance || isQuoteInsufficientBalance || isBelowMinimum || isQuoteLoading || !selectedRouteCard || !selectedRouteCard.quoteData.quoteId || selectedRouteGeoBlocked || !isAuthenticated || quoteStatus !== void 0;
|
|
9364
9407
|
const shouldShowSmartRouting = orderEligibility.canPlaceOrder && hasEnteredAmount && !isBelowMinimum && (orderedRouteCards.length > 0 || smartRoute.isFetching || smartRoute.isLoading);
|
|
9365
9408
|
const shouldShowRouteToggle = !isQuoteLoading && orderedRouteCards.length > PLACE_ORDER_ROUTE_COLLAPSED_CARD_COUNT;
|
|
9366
|
-
const handleReturnToOrderForm = (0,
|
|
9409
|
+
const handleReturnToOrderForm = (0, import_react10.useCallback)(() => {
|
|
9367
9410
|
const submittedSelection = submittedSelectionRef.current;
|
|
9368
9411
|
submittedSelectionRef.current = null;
|
|
9369
9412
|
setSubmissionProgressState(null);
|
|
@@ -9384,7 +9427,7 @@ var PlaceOrder = ({
|
|
|
9384
9427
|
const shareUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(shareText)}`;
|
|
9385
9428
|
window.open(shareUrl, "_blank", "noopener,noreferrer");
|
|
9386
9429
|
};
|
|
9387
|
-
const handleExecuteQuote = (0,
|
|
9430
|
+
const handleExecuteQuote = (0, import_react10.useCallback)(
|
|
9388
9431
|
(quoteData) => __async(null, null, function* () {
|
|
9389
9432
|
var _a2, _b2, _c2;
|
|
9390
9433
|
const quoteId = quoteData == null ? void 0 : quoteData.quoteId;
|
|
@@ -9482,7 +9525,7 @@ var PlaceOrder = ({
|
|
|
9482
9525
|
tradingLabels.quoteUnavailable
|
|
9483
9526
|
]
|
|
9484
9527
|
);
|
|
9485
|
-
const handleSkipToSuccess = (0,
|
|
9528
|
+
const handleSkipToSuccess = (0, import_react10.useCallback)(() => {
|
|
9486
9529
|
const primaryFilledEvent = executionProgress.terminalOrderEvents.find(
|
|
9487
9530
|
(e) => e.event === "filled" || e.event === "partial_fill"
|
|
9488
9531
|
);
|
|
@@ -9507,7 +9550,7 @@ var PlaceOrder = ({
|
|
|
9507
9550
|
failureSummary,
|
|
9508
9551
|
selectedRouteCard == null ? void 0 : selectedRouteCard.quoteData
|
|
9509
9552
|
]);
|
|
9510
|
-
(0,
|
|
9553
|
+
(0, import_react10.useEffect)(() => {
|
|
9511
9554
|
if ((submissionProgressState == null ? void 0 : submissionProgressState.phase) !== "failed") return;
|
|
9512
9555
|
if ((failureSummary == null ? void 0 : failureSummary.kind) !== "partial_fill") return;
|
|
9513
9556
|
if (!shouldAutoSkipPartialFill) return;
|
|
@@ -9518,7 +9561,7 @@ var PlaceOrder = ({
|
|
|
9518
9561
|
shouldAutoSkipPartialFill,
|
|
9519
9562
|
submissionProgressState == null ? void 0 : submissionProgressState.phase
|
|
9520
9563
|
]);
|
|
9521
|
-
const handleRetrySubmission = (0,
|
|
9564
|
+
const handleRetrySubmission = (0, import_react10.useCallback)(() => __async(null, null, function* () {
|
|
9522
9565
|
var _a2, _b2, _c2;
|
|
9523
9566
|
if (!orderEligibility.canPlaceOrder || (failureSummary == null ? void 0 : failureSummary.kind) === "generic") {
|
|
9524
9567
|
handleReturnToOrderForm();
|
|
@@ -9612,7 +9655,7 @@ var PlaceOrder = ({
|
|
|
9612
9655
|
]);
|
|
9613
9656
|
const resolvedStatusClassName = cn(classNames == null ? void 0 : classNames.root, className);
|
|
9614
9657
|
if (isLoading) {
|
|
9615
|
-
return /* @__PURE__ */ (0,
|
|
9658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9616
9659
|
Skeleton,
|
|
9617
9660
|
{
|
|
9618
9661
|
ariaLabel: labels.common.loading,
|
|
@@ -9623,7 +9666,7 @@ var PlaceOrder = ({
|
|
|
9623
9666
|
}
|
|
9624
9667
|
if (submissionProgressState) {
|
|
9625
9668
|
if (submissionProgressState.phase === "success" && submissionProgressState.summary) {
|
|
9626
|
-
return /* @__PURE__ */ (0,
|
|
9669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9627
9670
|
PlaceOrderSuccessView,
|
|
9628
9671
|
{
|
|
9629
9672
|
className: resolvedStatusClassName,
|
|
@@ -9635,7 +9678,7 @@ var PlaceOrder = ({
|
|
|
9635
9678
|
);
|
|
9636
9679
|
}
|
|
9637
9680
|
if (submissionProgressState.phase === "failed") {
|
|
9638
|
-
return /* @__PURE__ */ (0,
|
|
9681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9639
9682
|
PlaceOrderFailureView,
|
|
9640
9683
|
{
|
|
9641
9684
|
className: resolvedStatusClassName,
|
|
@@ -9709,7 +9752,7 @@ var PlaceOrder = ({
|
|
|
9709
9752
|
});
|
|
9710
9753
|
};
|
|
9711
9754
|
const handlePrimaryAction = () => __async(null, null, function* () {
|
|
9712
|
-
var _a2;
|
|
9755
|
+
var _a2, _b2, _c2;
|
|
9713
9756
|
if (!orderEligibility.canPlaceOrder) {
|
|
9714
9757
|
setSubmissionFeedback({
|
|
9715
9758
|
message: (_a2 = resolveOrderEligibilityMessage(labels, orderEligibility.reason)) != null ? _a2 : tradingLabels.orderFailed,
|
|
@@ -9719,6 +9762,26 @@ var PlaceOrder = ({
|
|
|
9719
9762
|
}
|
|
9720
9763
|
if (!selectedRouteCard) return;
|
|
9721
9764
|
setSubmissionFeedback(null);
|
|
9765
|
+
if (onBeforePrimaryAction) {
|
|
9766
|
+
const beforeContext = isPaperMode ? { quoteId: (_b2 = selectedRouteCard.quoteData) == null ? void 0 : _b2.quoteId, mode: "paper" } : { quoteId: (_c2 = selectedRouteCard.quoteData) == null ? void 0 : _c2.quoteId };
|
|
9767
|
+
setIsBeforeActionPending(true);
|
|
9768
|
+
try {
|
|
9769
|
+
const proceed = yield onBeforePrimaryAction(beforeContext);
|
|
9770
|
+
if (proceed === false) return;
|
|
9771
|
+
} catch (error) {
|
|
9772
|
+
setSubmissionFeedback({
|
|
9773
|
+
message: normalizePlaceOrderErrorMessage({
|
|
9774
|
+
errorMessage: error instanceof Error ? error.message : String(error),
|
|
9775
|
+
fallbackMessage: tradingLabels.orderFailed,
|
|
9776
|
+
labels: tradingLabels
|
|
9777
|
+
}),
|
|
9778
|
+
tone: "error"
|
|
9779
|
+
});
|
|
9780
|
+
return;
|
|
9781
|
+
} finally {
|
|
9782
|
+
setIsBeforeActionPending(false);
|
|
9783
|
+
}
|
|
9784
|
+
}
|
|
9722
9785
|
if (scopedSelectedMarket && scopedSelectedOutcomeId) {
|
|
9723
9786
|
submittedSelectionRef.current = {
|
|
9724
9787
|
marketId: scopedSelectedMarket.id,
|
|
@@ -9741,7 +9804,7 @@ var PlaceOrder = ({
|
|
|
9741
9804
|
}
|
|
9742
9805
|
});
|
|
9743
9806
|
if (!orderEligibility.canPlaceOrder && resolvedReadOnlyTradingState.kind !== "open") {
|
|
9744
|
-
return /* @__PURE__ */ (0,
|
|
9807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9745
9808
|
PlaceOrderResolvedView,
|
|
9746
9809
|
{
|
|
9747
9810
|
tradingState: resolvedReadOnlyTradingState,
|
|
@@ -9751,8 +9814,8 @@ var PlaceOrder = ({
|
|
|
9751
9814
|
}
|
|
9752
9815
|
);
|
|
9753
9816
|
}
|
|
9754
|
-
return /* @__PURE__ */ (0,
|
|
9755
|
-
/* @__PURE__ */ (0,
|
|
9817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_react10.Fragment, { children: [
|
|
9818
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9756
9819
|
Card,
|
|
9757
9820
|
{
|
|
9758
9821
|
className: cn(
|
|
@@ -9769,8 +9832,8 @@ var PlaceOrder = ({
|
|
|
9769
9832
|
headerTitle,
|
|
9770
9833
|
onClose
|
|
9771
9834
|
}),
|
|
9772
|
-
/* @__PURE__ */ (0,
|
|
9773
|
-
/* @__PURE__ */ (0,
|
|
9835
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: cn("agg-order-panel-content flex flex-col gap-6", classNames == null ? void 0 : classNames.content), children: [
|
|
9836
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9774
9837
|
"div",
|
|
9775
9838
|
{
|
|
9776
9839
|
className: "agg-order-tabs flex items-end border-b border-agg-separator",
|
|
@@ -9781,7 +9844,7 @@ var PlaceOrder = ({
|
|
|
9781
9844
|
{ value: "sell", label: tradingLabels.sell, ref: sellTabRef }
|
|
9782
9845
|
].map((tabItem) => {
|
|
9783
9846
|
const isActive = internalTab === tabItem.value;
|
|
9784
|
-
return /* @__PURE__ */ (0,
|
|
9847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9785
9848
|
"button",
|
|
9786
9849
|
{
|
|
9787
9850
|
ref: tabItem.ref,
|
|
@@ -9805,7 +9868,7 @@ var PlaceOrder = ({
|
|
|
9805
9868
|
onKeyDown: (event) => handleTabKeyDown(event, tabItem.value),
|
|
9806
9869
|
children: [
|
|
9807
9870
|
tabItem.label,
|
|
9808
|
-
/* @__PURE__ */ (0,
|
|
9871
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9809
9872
|
"span",
|
|
9810
9873
|
{
|
|
9811
9874
|
"aria-hidden": "true",
|
|
@@ -9827,7 +9890,7 @@ var PlaceOrder = ({
|
|
|
9827
9890
|
})
|
|
9828
9891
|
}
|
|
9829
9892
|
),
|
|
9830
|
-
outcomes.length >= 2 ? /* @__PURE__ */ (0,
|
|
9893
|
+
outcomes.length >= 2 ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "agg-outcomes flex w-full max-w-full gap-2", children: outcomes.map((outcome, index) => {
|
|
9831
9894
|
var _a2, _b2, _c2;
|
|
9832
9895
|
const price = getDisplayOutcomePrice({
|
|
9833
9896
|
outcomeId: outcome.id,
|
|
@@ -9841,7 +9904,7 @@ var PlaceOrder = ({
|
|
|
9841
9904
|
});
|
|
9842
9905
|
const isActive = outcome.id === scopedSelectedOutcomeId;
|
|
9843
9906
|
const isPositive = resolveIsPositiveOutcome(outcome, index);
|
|
9844
|
-
return /* @__PURE__ */ (0,
|
|
9907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9845
9908
|
"button",
|
|
9846
9909
|
{
|
|
9847
9910
|
"data-id": outcome.id,
|
|
@@ -9861,7 +9924,7 @@ var PlaceOrder = ({
|
|
|
9861
9924
|
disabled: !orderEligibility.canPlaceOrder || isResolvedOutcomeCtaLocked,
|
|
9862
9925
|
onClick: () => handleOutcomeChange(outcome.id),
|
|
9863
9926
|
children: [
|
|
9864
|
-
/* @__PURE__ */ (0,
|
|
9927
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9865
9928
|
Typography,
|
|
9866
9929
|
{
|
|
9867
9930
|
as: "span",
|
|
@@ -9870,18 +9933,18 @@ var PlaceOrder = ({
|
|
|
9870
9933
|
children: (_c2 = outcome.title) != null ? _c2 : outcome.label
|
|
9871
9934
|
}
|
|
9872
9935
|
),
|
|
9873
|
-
/* @__PURE__ */ (0,
|
|
9936
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Typography, { as: "span", variant: isActive ? "body-strong" : "body", children: formatProbabilityCents(price) })
|
|
9874
9937
|
]
|
|
9875
9938
|
},
|
|
9876
9939
|
outcome.id
|
|
9877
9940
|
);
|
|
9878
9941
|
}) }) : null,
|
|
9879
|
-
/* @__PURE__ */ (0,
|
|
9880
|
-
/* @__PURE__ */ (0,
|
|
9881
|
-
/* @__PURE__ */ (0,
|
|
9882
|
-
isAuthenticated ? isSell ? /* @__PURE__ */ (0,
|
|
9883
|
-
/* @__PURE__ */ (0,
|
|
9884
|
-
displayedCurrentSellableShares > 0 ? /* @__PURE__ */ (0,
|
|
9942
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-amount-section flex items-start justify-between gap-4", children: [
|
|
9943
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-amount-meta flex flex-col", children: [
|
|
9944
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-order-amount-label text-agg-base font-agg-bold leading-agg-6 text-agg-foreground whitespace-nowrap", children: tradingLabels.amount(internalTab) }),
|
|
9945
|
+
isAuthenticated ? isSell ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "agg-balance-value flex items-baseline gap-1.5 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: isCurrentSellableSharesLoading ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(LoadingIcon, { size: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(import_jsx_runtime122.Fragment, { children: [
|
|
9946
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "whitespace-pre", children: tradingLabels.shares(displayedCurrentSellableShares) }),
|
|
9947
|
+
displayedCurrentSellableShares > 0 ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9885
9948
|
"button",
|
|
9886
9949
|
{
|
|
9887
9950
|
type: "button",
|
|
@@ -9897,9 +9960,9 @@ var PlaceOrder = ({
|
|
|
9897
9960
|
children: tradingLabels.maxShares
|
|
9898
9961
|
}
|
|
9899
9962
|
) : null
|
|
9900
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
9963
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-balance-value flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(LoadingIcon, { size: "small" }) : tradingLabels.balance(formatUsd(totalBalance)) }) : null
|
|
9901
9964
|
] }),
|
|
9902
|
-
/* @__PURE__ */ (0,
|
|
9965
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9903
9966
|
CurrencyInput,
|
|
9904
9967
|
{
|
|
9905
9968
|
value: internalAmount,
|
|
@@ -9919,9 +9982,9 @@ var PlaceOrder = ({
|
|
|
9919
9982
|
}
|
|
9920
9983
|
)
|
|
9921
9984
|
] }),
|
|
9922
|
-
showFeesBreakdown && hasEnteredAmount && !isBelowMinimum && estimatedFeesValue ? /* @__PURE__ */ (0,
|
|
9923
|
-
/* @__PURE__ */ (0,
|
|
9924
|
-
/* @__PURE__ */ (0,
|
|
9985
|
+
showFeesBreakdown && hasEnteredAmount && !isBelowMinimum && estimatedFeesValue ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-fees-section flex items-center justify-between gap-4", children: [
|
|
9986
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
|
9987
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9925
9988
|
Typography,
|
|
9926
9989
|
{
|
|
9927
9990
|
variant: "text-sm",
|
|
@@ -9929,7 +9992,7 @@ var PlaceOrder = ({
|
|
|
9929
9992
|
children: tradingLabels.estimatedFees
|
|
9930
9993
|
}
|
|
9931
9994
|
),
|
|
9932
|
-
feeBreakdownRows.length > 0 ? /* @__PURE__ */ (0,
|
|
9995
|
+
feeBreakdownRows.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9933
9996
|
Tooltip,
|
|
9934
9997
|
{
|
|
9935
9998
|
"aria-label": tradingLabels.estimatedFeesTooltipAria,
|
|
@@ -9941,13 +10004,13 @@ var PlaceOrder = ({
|
|
|
9941
10004
|
icon: "h-3 w-3 text-agg-muted-foreground",
|
|
9942
10005
|
trigger: "h-3 w-3 text-agg-muted-foreground"
|
|
9943
10006
|
},
|
|
9944
|
-
content: /* @__PURE__ */ (0,
|
|
10007
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "flex w-full flex-col gap-2", children: feeBreakdownRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9945
10008
|
"div",
|
|
9946
10009
|
{
|
|
9947
10010
|
className: "flex items-center justify-between gap-3 text-agg-sm font-agg-normal leading-agg-5 text-agg-foreground",
|
|
9948
10011
|
children: [
|
|
9949
|
-
/* @__PURE__ */ (0,
|
|
9950
|
-
row.kind === "badge" ? /* @__PURE__ */ (0,
|
|
10012
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { children: row.label }),
|
|
10013
|
+
row.kind === "badge" ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9951
10014
|
"span",
|
|
9952
10015
|
{
|
|
9953
10016
|
className: cn(
|
|
@@ -9957,7 +10020,7 @@ var PlaceOrder = ({
|
|
|
9957
10020
|
),
|
|
9958
10021
|
children: row.badgeLabel
|
|
9959
10022
|
}
|
|
9960
|
-
) : /* @__PURE__ */ (0,
|
|
10023
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-right", children: row.value })
|
|
9961
10024
|
]
|
|
9962
10025
|
},
|
|
9963
10026
|
row.label
|
|
@@ -9965,12 +10028,12 @@ var PlaceOrder = ({
|
|
|
9965
10028
|
}
|
|
9966
10029
|
) : null
|
|
9967
10030
|
] }),
|
|
9968
|
-
/* @__PURE__ */ (0,
|
|
10031
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: estimatedFeesValue })
|
|
9969
10032
|
] }) : null,
|
|
9970
|
-
shouldShowSmartRouting ? /* @__PURE__ */ (0,
|
|
9971
|
-
/* @__PURE__ */ (0,
|
|
9972
|
-
/* @__PURE__ */ (0,
|
|
9973
|
-
shouldShowRouteToggle && !isRoutesExpanded ? /* @__PURE__ */ (0,
|
|
10033
|
+
shouldShowSmartRouting ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-panel flex flex-col gap-3", children: [
|
|
10034
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-panel-header flex items-center justify-between gap-4", children: [
|
|
10035
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-route-panel-title text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.smartRouting }),
|
|
10036
|
+
shouldShowRouteToggle && !isRoutesExpanded ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
9974
10037
|
"button",
|
|
9975
10038
|
{
|
|
9976
10039
|
type: "button",
|
|
@@ -9978,8 +10041,8 @@ var PlaceOrder = ({
|
|
|
9978
10041
|
"aria-label": tradingLabels.viewAllRoutes(orderedRouteCards.length),
|
|
9979
10042
|
onClick: () => setIsRoutesExpanded((currentValue) => !currentValue),
|
|
9980
10043
|
children: [
|
|
9981
|
-
/* @__PURE__ */ (0,
|
|
9982
|
-
/* @__PURE__ */ (0,
|
|
10044
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { children: tradingLabels.viewAllRoutes(orderedRouteCards.length) }),
|
|
10045
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
9983
10046
|
Icon,
|
|
9984
10047
|
{
|
|
9985
10048
|
name: "chevron-down",
|
|
@@ -9992,11 +10055,11 @@ var PlaceOrder = ({
|
|
|
9992
10055
|
}
|
|
9993
10056
|
) : null
|
|
9994
10057
|
] }),
|
|
9995
|
-
/* @__PURE__ */ (0,
|
|
9996
|
-
/* @__PURE__ */ (0,
|
|
9997
|
-
/* @__PURE__ */ (0,
|
|
10058
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: isQuoteLoading ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-route-loading flex flex-col gap-2", "aria-hidden": "true", children: [
|
|
10059
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(PlaceOrderRouteCardSkeleton, {}),
|
|
10060
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(PlaceOrderRouteCardSkeleton, {})
|
|
9998
10061
|
] }) : visibleRouteCards.length > 0 ? visibleRouteCards.map((card) => {
|
|
9999
|
-
return /* @__PURE__ */ (0,
|
|
10062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_react10.Fragment, { children: renderRouteCard({
|
|
10000
10063
|
card,
|
|
10001
10064
|
enableAnimations,
|
|
10002
10065
|
isExpanded: card.kind === "split" ? isSplitDetailOpen : isRoutesExpanded,
|
|
@@ -10006,13 +10069,13 @@ var PlaceOrder = ({
|
|
|
10006
10069
|
}) }, card.id);
|
|
10007
10070
|
}) : null })
|
|
10008
10071
|
] }) : null,
|
|
10009
|
-
hasEnteredAmount && selectedRouteCard && !isQuoteLoading && !isBelowMinimum && orderEligibility.canPlaceOrder ? /* @__PURE__ */ (0,
|
|
10010
|
-
/* @__PURE__ */ (0,
|
|
10011
|
-
/* @__PURE__ */ (0,
|
|
10012
|
-
/* @__PURE__ */ (0,
|
|
10072
|
+
hasEnteredAmount && selectedRouteCard && !isQuoteLoading && !isBelowMinimum && orderEligibility.canPlaceOrder ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-summary flex items-start justify-between gap-4", children: [
|
|
10073
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-summary-meta flex flex-col", children: [
|
|
10074
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-order-summary-label text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.toWin(internalTab) }),
|
|
10075
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-order-summary-hint text-agg-sm leading-agg-5 text-agg-muted-foreground", children: displayedToWinHint })
|
|
10013
10076
|
] }),
|
|
10014
|
-
/* @__PURE__ */ (0,
|
|
10015
|
-
|
|
10077
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10078
|
+
import_react9.default,
|
|
10016
10079
|
{
|
|
10017
10080
|
value: displayedToWinValue,
|
|
10018
10081
|
locales: locale,
|
|
@@ -10026,7 +10089,7 @@ var PlaceOrder = ({
|
|
|
10026
10089
|
}
|
|
10027
10090
|
)
|
|
10028
10091
|
] }) : null,
|
|
10029
|
-
/* @__PURE__ */ (0,
|
|
10092
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
10030
10093
|
"div",
|
|
10031
10094
|
{
|
|
10032
10095
|
className: cn(
|
|
@@ -10034,17 +10097,17 @@ var PlaceOrder = ({
|
|
|
10034
10097
|
classNames == null ? void 0 : classNames.footer
|
|
10035
10098
|
),
|
|
10036
10099
|
children: [
|
|
10037
|
-
!shouldShowGeoBlockBanner ? /* @__PURE__ */ (0,
|
|
10038
|
-
submissionFeedback ? /* @__PURE__ */ (0,
|
|
10100
|
+
!shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-alerts flex flex-col gap-3 empty:hidden mb-3", children: [
|
|
10101
|
+
submissionFeedback ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10039
10102
|
InlineAlert,
|
|
10040
10103
|
{
|
|
10041
10104
|
tone: submissionFeedback.tone,
|
|
10042
10105
|
message: submissionFeedback.message
|
|
10043
10106
|
}
|
|
10044
10107
|
) : null,
|
|
10045
|
-
!submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && isBelowMinimum ? /* @__PURE__ */ (0,
|
|
10046
|
-
!submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && quoteStatus ? /* @__PURE__ */ (0,
|
|
10047
|
-
!submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && !quoteStatus && isAuthenticated && hasEnteredAmount && smartRouteErrorMessage ? /* @__PURE__ */ (0,
|
|
10108
|
+
!submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && isBelowMinimum ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(InlineAlert, { tone: "error", message: belowMinimumMessage }) : null,
|
|
10109
|
+
!submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && quoteStatus ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(InlineAlert, { tone: quoteStatus.tone, message: quoteStatus.message }) : null,
|
|
10110
|
+
!submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && !quoteStatus && isAuthenticated && hasEnteredAmount && smartRouteErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10048
10111
|
InlineAlert,
|
|
10049
10112
|
{
|
|
10050
10113
|
tone: "error",
|
|
@@ -10056,14 +10119,14 @@ var PlaceOrder = ({
|
|
|
10056
10119
|
}
|
|
10057
10120
|
) : null
|
|
10058
10121
|
] }) : null,
|
|
10059
|
-
!submissionFeedback && !shouldShowGeoBlockBanner && orderEligibility.canPlaceOrder && shouldShowInsufficientBalanceAlert ? /* @__PURE__ */ (0,
|
|
10122
|
+
!submissionFeedback && !shouldShowGeoBlockBanner && orderEligibility.canPlaceOrder && shouldShowInsufficientBalanceAlert ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
|
|
10060
10123
|
"div",
|
|
10061
10124
|
{
|
|
10062
10125
|
className: "agg-order-insufficient-balance-alert flex items-center justify-center gap-2",
|
|
10063
10126
|
role: "status",
|
|
10064
10127
|
"aria-live": "polite",
|
|
10065
10128
|
children: [
|
|
10066
|
-
/* @__PURE__ */ (0,
|
|
10129
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10067
10130
|
Icon,
|
|
10068
10131
|
{
|
|
10069
10132
|
name: "warning-filled",
|
|
@@ -10072,11 +10135,11 @@ var PlaceOrder = ({
|
|
|
10072
10135
|
"aria-hidden": "true"
|
|
10073
10136
|
}
|
|
10074
10137
|
),
|
|
10075
|
-
/* @__PURE__ */ (0,
|
|
10138
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-sm text-agg-foreground", children: tradingLabels.insufficientBalance })
|
|
10076
10139
|
]
|
|
10077
10140
|
}
|
|
10078
10141
|
) : null,
|
|
10079
|
-
!submissionFeedback && !shouldShowGeoBlockBanner && isInsufficientBalance ? /* @__PURE__ */ (0,
|
|
10142
|
+
!submissionFeedback && !shouldShowGeoBlockBanner && isInsufficientBalance ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10080
10143
|
Button,
|
|
10081
10144
|
{
|
|
10082
10145
|
size: "large",
|
|
@@ -10086,7 +10149,7 @@ var PlaceOrder = ({
|
|
|
10086
10149
|
onClick: handleDepositRequiredClick,
|
|
10087
10150
|
children: tradingLabels.deposit
|
|
10088
10151
|
}
|
|
10089
|
-
) : needsKycVerification && !submissionFeedback && !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0,
|
|
10152
|
+
) : needsKycVerification && !submissionFeedback && !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(InitiateKycButton, { label: tradingLabels.kycRequired, onOpen: openVerifyModal }) : isQuoteLoading && !isActionLoading ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10090
10153
|
Button,
|
|
10091
10154
|
{
|
|
10092
10155
|
size: "large",
|
|
@@ -10095,7 +10158,7 @@ var PlaceOrder = ({
|
|
|
10095
10158
|
disabled: true,
|
|
10096
10159
|
"aria-live": "polite",
|
|
10097
10160
|
"aria-label": routeLoadingMessage != null ? routeLoadingMessage : labels.common.loading,
|
|
10098
|
-
prefix: /* @__PURE__ */ (0,
|
|
10161
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10099
10162
|
"span",
|
|
10100
10163
|
{
|
|
10101
10164
|
className: cn(
|
|
@@ -10107,7 +10170,7 @@ var PlaceOrder = ({
|
|
|
10107
10170
|
),
|
|
10108
10171
|
children: routeLoadingMessage
|
|
10109
10172
|
}
|
|
10110
|
-
) : !isAuthenticated ? /* @__PURE__ */ (0,
|
|
10173
|
+
) : !isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10111
10174
|
Button,
|
|
10112
10175
|
{
|
|
10113
10176
|
size: "large",
|
|
@@ -10118,7 +10181,7 @@ var PlaceOrder = ({
|
|
|
10118
10181
|
onClick: import_hooks29.requestAggAuthChooserOpen,
|
|
10119
10182
|
children: tradingLabels.signInToTrade
|
|
10120
10183
|
}
|
|
10121
|
-
) : /* @__PURE__ */ (0,
|
|
10184
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10122
10185
|
Button,
|
|
10123
10186
|
{
|
|
10124
10187
|
size: "large",
|
|
@@ -10133,8 +10196,8 @@ var PlaceOrder = ({
|
|
|
10133
10196
|
children: actionLabel
|
|
10134
10197
|
}
|
|
10135
10198
|
),
|
|
10136
|
-
!shouldShowGeoBlockBanner && internalTab === "buy" && showFeesBreakdown ? /* @__PURE__ */ (0,
|
|
10137
|
-
/* @__PURE__ */ (0,
|
|
10199
|
+
!shouldShowGeoBlockBanner && internalTab === "buy" && showFeesBreakdown ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-order-platform-fee mt-1 flex items-center justify-center gap-1.5 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: [
|
|
10200
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10138
10201
|
Icon,
|
|
10139
10202
|
{
|
|
10140
10203
|
name: "shield-trust",
|
|
@@ -10143,10 +10206,10 @@ var PlaceOrder = ({
|
|
|
10143
10206
|
"aria-hidden": "true"
|
|
10144
10207
|
}
|
|
10145
10208
|
),
|
|
10146
|
-
/* @__PURE__ */ (0,
|
|
10209
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Typography, { variant: "text-xs-caps", className: "text-agg-primary", children: tradingLabels.platformFee })
|
|
10147
10210
|
] }) : null,
|
|
10148
|
-
shouldShowGeoBlockBanner ? /* @__PURE__ */ (0,
|
|
10149
|
-
!shouldShowGeoBlockBanner ? /* @__PURE__ */ (0,
|
|
10211
|
+
shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(GeoBlockBanner, { termsUrl: AGG_TERMS_OF_SERVICE_URL }) : null,
|
|
10212
|
+
!shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "agg-order-disclaimer text-center text-agg-xs leading-agg-4 text-agg-muted-foreground", children: tradingLabels.disclaimer }) : null
|
|
10150
10213
|
]
|
|
10151
10214
|
}
|
|
10152
10215
|
)
|
|
@@ -10154,7 +10217,7 @@ var PlaceOrder = ({
|
|
|
10154
10217
|
]
|
|
10155
10218
|
}
|
|
10156
10219
|
),
|
|
10157
|
-
/* @__PURE__ */ (0,
|
|
10220
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10158
10221
|
KycVerifyModal,
|
|
10159
10222
|
{
|
|
10160
10223
|
open: isKycVerifyModalOpen,
|
|
@@ -10171,7 +10234,7 @@ var PlaceOrder = ({
|
|
|
10171
10234
|
}
|
|
10172
10235
|
}
|
|
10173
10236
|
),
|
|
10174
|
-
/* @__PURE__ */ (0,
|
|
10237
|
+
/* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
10175
10238
|
KycSuccessModal,
|
|
10176
10239
|
{
|
|
10177
10240
|
open: showKycSuccessModal,
|
|
@@ -10191,6 +10254,312 @@ PlaceOrder.displayName = "PlaceOrder";
|
|
|
10191
10254
|
|
|
10192
10255
|
// src/trading/trading-context/index.tsx
|
|
10193
10256
|
var import_hooks30 = require("@agg-build/hooks");
|
|
10257
|
+
|
|
10258
|
+
// src/trading/use-claim-winnings.ts
|
|
10259
|
+
var import_hooks31 = require("@agg-build/hooks");
|
|
10260
|
+
var import_react11 = require("react");
|
|
10261
|
+
var toClaimError = (err) => {
|
|
10262
|
+
if (err instanceof Error) return err;
|
|
10263
|
+
return new Error(String(err));
|
|
10264
|
+
};
|
|
10265
|
+
function useClaimWinnings(options = {}) {
|
|
10266
|
+
const { onClaim, onClaimResult, onClaimSubmitError, externalClaimingKeys } = options;
|
|
10267
|
+
const labels = (0, import_hooks31.useLabels)();
|
|
10268
|
+
const claimNotificationLabels = labels.notifications.claim;
|
|
10269
|
+
const toastCtx = useOptionalToast();
|
|
10270
|
+
const queryClient = (0, import_hooks31.useQueryClient)();
|
|
10271
|
+
const redeemMutation = (0, import_hooks31.useRedeem)();
|
|
10272
|
+
const [activeRedeems, setActiveRedeems] = (0, import_react11.useState)({});
|
|
10273
|
+
const activeClaimKeysRef = (0, import_react11.useRef)(/* @__PURE__ */ new Set());
|
|
10274
|
+
const pendingClaimToastIdsRef = (0, import_react11.useRef)({});
|
|
10275
|
+
const submittedClaimToastKeysRef = (0, import_react11.useRef)(/* @__PURE__ */ new Set());
|
|
10276
|
+
const [submittingClaimKeys, setSubmittingClaimKeys] = (0, import_react11.useState)({});
|
|
10277
|
+
const lifecycleInputs = (0, import_react11.useMemo)(
|
|
10278
|
+
() => Object.values(activeRedeems),
|
|
10279
|
+
[activeRedeems]
|
|
10280
|
+
);
|
|
10281
|
+
const lifecycleStates = (0, import_hooks31.useRedeemLifecycles)(lifecycleInputs);
|
|
10282
|
+
const internalClaimingIds = (0, import_react11.useMemo)(() => {
|
|
10283
|
+
const out = __spreadValues({}, submittingClaimKeys);
|
|
10284
|
+
for (const [claimKey, active] of Object.entries(activeRedeems)) {
|
|
10285
|
+
const state = lifecycleStates[active.redeemId];
|
|
10286
|
+
if (!state || !state.terminal) out[claimKey] = true;
|
|
10287
|
+
}
|
|
10288
|
+
return out;
|
|
10289
|
+
}, [activeRedeems, lifecycleStates, submittingClaimKeys]);
|
|
10290
|
+
const claimingKeys = externalClaimingKeys != null ? externalClaimingKeys : internalClaimingIds;
|
|
10291
|
+
const isClaiming = (0, import_react11.useCallback)(
|
|
10292
|
+
(claimKey) => Boolean(externalClaimingKeys == null ? void 0 : externalClaimingKeys[claimKey]) || Boolean(internalClaimingIds[claimKey]),
|
|
10293
|
+
[externalClaimingKeys, internalClaimingIds]
|
|
10294
|
+
);
|
|
10295
|
+
const invalidateClaimUiState = (0, import_react11.useCallback)(() => {
|
|
10296
|
+
(0, import_hooks31.invalidateBalanceQueries)(queryClient);
|
|
10297
|
+
(0, import_hooks31.invalidatePositionQueries)(queryClient);
|
|
10298
|
+
queryClient.invalidateQueries({
|
|
10299
|
+
queryKey: import_hooks31.executionKeys.claimablePositionsCount(),
|
|
10300
|
+
refetchType: "active"
|
|
10301
|
+
});
|
|
10302
|
+
(0, import_hooks31.invalidateUserActivityQueries)(queryClient);
|
|
10303
|
+
}, [queryClient]);
|
|
10304
|
+
const claim = (0, import_react11.useCallback)(
|
|
10305
|
+
(_0) => __async(null, [_0], function* ({ claimKey, winningOutcomeIds, payload }) {
|
|
10306
|
+
if (activeClaimKeysRef.current.has(claimKey) || Boolean(externalClaimingKeys == null ? void 0 : externalClaimingKeys[claimKey]) || internalClaimingIds[claimKey]) {
|
|
10307
|
+
return;
|
|
10308
|
+
}
|
|
10309
|
+
activeClaimKeysRef.current.add(claimKey);
|
|
10310
|
+
setSubmittingClaimKeys((prev) => __spreadProps(__spreadValues({}, prev), { [claimKey]: true }));
|
|
10311
|
+
const pendingToastId = toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.pendingMessage, {
|
|
10312
|
+
title: claimNotificationLabels.pendingTitle,
|
|
10313
|
+
tone: "info"
|
|
10314
|
+
});
|
|
10315
|
+
if (pendingToastId != null) {
|
|
10316
|
+
pendingClaimToastIdsRef.current[claimKey] = pendingToastId;
|
|
10317
|
+
}
|
|
10318
|
+
if (onClaim) {
|
|
10319
|
+
try {
|
|
10320
|
+
yield onClaim(payload);
|
|
10321
|
+
const pendingId = pendingClaimToastIdsRef.current[claimKey];
|
|
10322
|
+
if (pendingId != null) toastCtx == null ? void 0 : toastCtx.dismiss(pendingId);
|
|
10323
|
+
delete pendingClaimToastIdsRef.current[claimKey];
|
|
10324
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.successMessage, {
|
|
10325
|
+
title: claimNotificationLabels.successTitle,
|
|
10326
|
+
tone: "success"
|
|
10327
|
+
});
|
|
10328
|
+
} catch (err) {
|
|
10329
|
+
const error = toClaimError(err);
|
|
10330
|
+
console.error("[useClaimWinnings] redeem failed", error);
|
|
10331
|
+
const pendingId = pendingClaimToastIdsRef.current[claimKey];
|
|
10332
|
+
if (pendingId != null) toastCtx == null ? void 0 : toastCtx.dismiss(pendingId);
|
|
10333
|
+
delete pendingClaimToastIdsRef.current[claimKey];
|
|
10334
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.failedMessage(error.message), {
|
|
10335
|
+
title: claimNotificationLabels.failedTitle,
|
|
10336
|
+
tone: "error"
|
|
10337
|
+
});
|
|
10338
|
+
onClaimSubmitError == null ? void 0 : onClaimSubmitError(claimKey, error);
|
|
10339
|
+
throw error;
|
|
10340
|
+
} finally {
|
|
10341
|
+
invalidateClaimUiState();
|
|
10342
|
+
activeClaimKeysRef.current.delete(claimKey);
|
|
10343
|
+
setSubmittingClaimKeys((prev) => {
|
|
10344
|
+
const _a = prev, { [claimKey]: _removed } = _a, rest = __objRest(_a, [__restKey(claimKey)]);
|
|
10345
|
+
return rest;
|
|
10346
|
+
});
|
|
10347
|
+
}
|
|
10348
|
+
return;
|
|
10349
|
+
}
|
|
10350
|
+
if (winningOutcomeIds.length === 0) {
|
|
10351
|
+
const error = new Error(claimNotificationLabels.missingOutcomeMessage);
|
|
10352
|
+
console.error("[useClaimWinnings] redeem failed", error);
|
|
10353
|
+
const pendingId = pendingClaimToastIdsRef.current[claimKey];
|
|
10354
|
+
if (pendingId != null) toastCtx == null ? void 0 : toastCtx.dismiss(pendingId);
|
|
10355
|
+
delete pendingClaimToastIdsRef.current[claimKey];
|
|
10356
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.failedMessage(error.message), {
|
|
10357
|
+
title: claimNotificationLabels.failedTitle,
|
|
10358
|
+
tone: "error"
|
|
10359
|
+
});
|
|
10360
|
+
onClaimSubmitError == null ? void 0 : onClaimSubmitError(claimKey, error);
|
|
10361
|
+
invalidateClaimUiState();
|
|
10362
|
+
activeClaimKeysRef.current.delete(claimKey);
|
|
10363
|
+
setSubmittingClaimKeys((prev) => {
|
|
10364
|
+
const _a = prev, { [claimKey]: _removed } = _a, rest = __objRest(_a, [__restKey(claimKey)]);
|
|
10365
|
+
return rest;
|
|
10366
|
+
});
|
|
10367
|
+
throw error;
|
|
10368
|
+
}
|
|
10369
|
+
try {
|
|
10370
|
+
const response = yield redeemMutation.mutateAsync({
|
|
10371
|
+
venueMarketOutcomeIds: winningOutcomeIds
|
|
10372
|
+
});
|
|
10373
|
+
const expectedOutcomeIds = [];
|
|
10374
|
+
const preFailedOutcomeIds = [];
|
|
10375
|
+
const preFailedReasons = {};
|
|
10376
|
+
const preConfirmedOutcomeIds = [];
|
|
10377
|
+
const preConfirmedTxHashes = {};
|
|
10378
|
+
for (const result of response.results) {
|
|
10379
|
+
if (result.status === "submitted") {
|
|
10380
|
+
expectedOutcomeIds.push(result.venueMarketOutcomeId);
|
|
10381
|
+
} else if (result.status === "confirmed") {
|
|
10382
|
+
preConfirmedOutcomeIds.push(result.venueMarketOutcomeId);
|
|
10383
|
+
preConfirmedTxHashes[result.venueMarketOutcomeId] = result.txHash;
|
|
10384
|
+
} else if (result.status === "ineligible" || result.status === "rejected") {
|
|
10385
|
+
preFailedOutcomeIds.push(result.venueMarketOutcomeId);
|
|
10386
|
+
preFailedReasons[result.venueMarketOutcomeId] = result.reason;
|
|
10387
|
+
}
|
|
10388
|
+
}
|
|
10389
|
+
if (expectedOutcomeIds.length > 0) {
|
|
10390
|
+
const pendingId = pendingClaimToastIdsRef.current[claimKey];
|
|
10391
|
+
if (pendingId != null) toastCtx == null ? void 0 : toastCtx.dismiss(pendingId);
|
|
10392
|
+
delete pendingClaimToastIdsRef.current[claimKey];
|
|
10393
|
+
submittedClaimToastKeysRef.current.add(claimKey);
|
|
10394
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.submittedMessage, {
|
|
10395
|
+
title: claimNotificationLabels.submittedTitle,
|
|
10396
|
+
tone: "success"
|
|
10397
|
+
});
|
|
10398
|
+
}
|
|
10399
|
+
setActiveRedeems((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
10400
|
+
[claimKey]: {
|
|
10401
|
+
redeemId: response.redeemId,
|
|
10402
|
+
expectedOutcomeIds,
|
|
10403
|
+
preFailedOutcomeIds,
|
|
10404
|
+
preFailedReasons,
|
|
10405
|
+
preConfirmedOutcomeIds,
|
|
10406
|
+
preConfirmedTxHashes
|
|
10407
|
+
}
|
|
10408
|
+
}));
|
|
10409
|
+
yield queryClient.invalidateQueries({ queryKey: ["current-user"] });
|
|
10410
|
+
} catch (err) {
|
|
10411
|
+
const error = toClaimError(err);
|
|
10412
|
+
console.error("[useClaimWinnings] redeem failed", error);
|
|
10413
|
+
const pendingId = pendingClaimToastIdsRef.current[claimKey];
|
|
10414
|
+
if (pendingId != null) toastCtx == null ? void 0 : toastCtx.dismiss(pendingId);
|
|
10415
|
+
delete pendingClaimToastIdsRef.current[claimKey];
|
|
10416
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.failedMessage(error.message), {
|
|
10417
|
+
title: claimNotificationLabels.failedTitle,
|
|
10418
|
+
tone: "error"
|
|
10419
|
+
});
|
|
10420
|
+
onClaimSubmitError == null ? void 0 : onClaimSubmitError(claimKey, error);
|
|
10421
|
+
throw error;
|
|
10422
|
+
} finally {
|
|
10423
|
+
activeClaimKeysRef.current.delete(claimKey);
|
|
10424
|
+
setSubmittingClaimKeys((prev) => {
|
|
10425
|
+
const _a = prev, { [claimKey]: _removed } = _a, rest = __objRest(_a, [__restKey(claimKey)]);
|
|
10426
|
+
return rest;
|
|
10427
|
+
});
|
|
10428
|
+
}
|
|
10429
|
+
}),
|
|
10430
|
+
[
|
|
10431
|
+
claimNotificationLabels,
|
|
10432
|
+
externalClaimingKeys,
|
|
10433
|
+
internalClaimingIds,
|
|
10434
|
+
invalidateClaimUiState,
|
|
10435
|
+
onClaim,
|
|
10436
|
+
onClaimSubmitError,
|
|
10437
|
+
queryClient,
|
|
10438
|
+
redeemMutation,
|
|
10439
|
+
toastCtx
|
|
10440
|
+
]
|
|
10441
|
+
);
|
|
10442
|
+
const firedTerminalRef = (0, import_react11.useRef)({});
|
|
10443
|
+
(0, import_react11.useEffect)(() => {
|
|
10444
|
+
var _a, _b;
|
|
10445
|
+
for (const [claimKey, active] of Object.entries(activeRedeems)) {
|
|
10446
|
+
const state = lifecycleStates[active.redeemId];
|
|
10447
|
+
if (!state || !state.terminal) continue;
|
|
10448
|
+
if (firedTerminalRef.current[active.redeemId]) continue;
|
|
10449
|
+
firedTerminalRef.current[active.redeemId] = true;
|
|
10450
|
+
onClaimResult == null ? void 0 : onClaimResult(claimKey, {
|
|
10451
|
+
allConfirmed: state.allConfirmed,
|
|
10452
|
+
anyFailed: state.anyFailed,
|
|
10453
|
+
errorMessage: state.errorMessage
|
|
10454
|
+
});
|
|
10455
|
+
const pendingId = pendingClaimToastIdsRef.current[claimKey];
|
|
10456
|
+
if (pendingId != null) toastCtx == null ? void 0 : toastCtx.dismiss(pendingId);
|
|
10457
|
+
delete pendingClaimToastIdsRef.current[claimKey];
|
|
10458
|
+
if (state.allConfirmed) {
|
|
10459
|
+
if (!submittedClaimToastKeysRef.current.has(claimKey)) {
|
|
10460
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.successMessage, {
|
|
10461
|
+
title: claimNotificationLabels.successTitle,
|
|
10462
|
+
tone: "success"
|
|
10463
|
+
});
|
|
10464
|
+
}
|
|
10465
|
+
} else if (state.anyFailed) {
|
|
10466
|
+
const hasConfirmedLeg = Object.values(state.legs).some((leg) => leg.status === "confirmed");
|
|
10467
|
+
if (hasConfirmedLeg) {
|
|
10468
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.partialMessage((_a = state.errorMessage) != null ? _a : void 0), {
|
|
10469
|
+
title: claimNotificationLabels.partialTitle,
|
|
10470
|
+
tone: "warning"
|
|
10471
|
+
});
|
|
10472
|
+
} else {
|
|
10473
|
+
toastCtx == null ? void 0 : toastCtx.toast(claimNotificationLabels.failedMessage((_b = state.errorMessage) != null ? _b : void 0), {
|
|
10474
|
+
title: claimNotificationLabels.failedTitle,
|
|
10475
|
+
tone: "error"
|
|
10476
|
+
});
|
|
10477
|
+
}
|
|
10478
|
+
}
|
|
10479
|
+
submittedClaimToastKeysRef.current.delete(claimKey);
|
|
10480
|
+
invalidateClaimUiState();
|
|
10481
|
+
delete firedTerminalRef.current[active.redeemId];
|
|
10482
|
+
setActiveRedeems((prev) => {
|
|
10483
|
+
const _a2 = prev, { [claimKey]: _removed } = _a2, rest = __objRest(_a2, [__restKey(claimKey)]);
|
|
10484
|
+
return rest;
|
|
10485
|
+
});
|
|
10486
|
+
}
|
|
10487
|
+
}, [
|
|
10488
|
+
activeRedeems,
|
|
10489
|
+
claimNotificationLabels,
|
|
10490
|
+
invalidateClaimUiState,
|
|
10491
|
+
lifecycleStates,
|
|
10492
|
+
onClaimResult,
|
|
10493
|
+
toastCtx
|
|
10494
|
+
]);
|
|
10495
|
+
return { claim, claimingKeys, isClaiming };
|
|
10496
|
+
}
|
|
10497
|
+
|
|
10498
|
+
// src/trading/use-resolved-market-claim.ts
|
|
10499
|
+
var import_hooks32 = require("@agg-build/hooks");
|
|
10500
|
+
var import_react12 = require("react");
|
|
10501
|
+
var sharesFormatter = new Intl.NumberFormat("en-US", { maximumFractionDigits: 2 });
|
|
10502
|
+
var dateFormatter = new Intl.DateTimeFormat("en-US", {
|
|
10503
|
+
month: "short",
|
|
10504
|
+
day: "numeric",
|
|
10505
|
+
year: "numeric"
|
|
10506
|
+
});
|
|
10507
|
+
var formatResolutionDate = (value) => {
|
|
10508
|
+
if (!value) return "";
|
|
10509
|
+
const date = new Date(value);
|
|
10510
|
+
if (Number.isNaN(date.getTime())) return "";
|
|
10511
|
+
return dateFormatter.format(date);
|
|
10512
|
+
};
|
|
10513
|
+
function useResolvedMarketClaim(options = {}) {
|
|
10514
|
+
var _a;
|
|
10515
|
+
const { market, enabled = true, executionMode } = options;
|
|
10516
|
+
const { isAuthenticated } = (0, import_hooks32.useAggAuthState)();
|
|
10517
|
+
const tradingState = (0, import_react12.useMemo)(() => (0, import_hooks32.resolveMarketTradingState)(market), [market]);
|
|
10518
|
+
const isResolved = tradingState.kind === "resolved";
|
|
10519
|
+
const marketId = (_a = market == null ? void 0 : market.id) != null ? _a : null;
|
|
10520
|
+
const shouldFetch = Boolean(enabled && isAuthenticated && isResolved && marketId);
|
|
10521
|
+
const { positions } = (0, import_hooks32.useExecutionPositions)(__spreadValues({
|
|
10522
|
+
enabled: shouldFetch,
|
|
10523
|
+
status: "active",
|
|
10524
|
+
limit: 50
|
|
10525
|
+
}, executionMode === "paper" ? { mode: "paper" } : {}));
|
|
10526
|
+
const claimWinnings = useClaimWinnings();
|
|
10527
|
+
return (0, import_react12.useMemo)(() => {
|
|
10528
|
+
var _a2, _b, _c;
|
|
10529
|
+
if (!shouldFetch || !marketId) return void 0;
|
|
10530
|
+
const group = positions.find(
|
|
10531
|
+
(candidate) => candidate.targetMarketId === marketId
|
|
10532
|
+
);
|
|
10533
|
+
if (!group || group.venueMarket.status !== "resolved") return void 0;
|
|
10534
|
+
const winningOutcomes = group.venueMarket.venueMarketOutcomes.filter(
|
|
10535
|
+
(outcome) => outcome.winner === true && outcome.totalSize > 0
|
|
10536
|
+
);
|
|
10537
|
+
if (winningOutcomes.length === 0) return void 0;
|
|
10538
|
+
const totals = (0, import_hooks32.computeClosedPositionTotals)(group);
|
|
10539
|
+
const winningShares = winningOutcomes.reduce((sum, outcome) => sum + outcome.totalSize, 0);
|
|
10540
|
+
const winningOutcomeLabel = ((_b = (_a2 = winningOutcomes[0]) == null ? void 0 : _a2.title) == null ? void 0 : _b.trim()) || ((_c = winningOutcomes[0]) == null ? void 0 : _c.label) || "";
|
|
10541
|
+
const claimKey = group.targetMarketId;
|
|
10542
|
+
const canClaim = group.redeemStatus === "eligible" && totals.winningOutcomeIds.length > 0;
|
|
10543
|
+
return {
|
|
10544
|
+
resolutionDateLabel: formatResolutionDate(group.resolutionDate),
|
|
10545
|
+
winningOutcomeLabel,
|
|
10546
|
+
sharesLabel: `${sharesFormatter.format(winningShares)} ${winningOutcomeLabel}`.trim(),
|
|
10547
|
+
// Payout is always shown with 2 decimals (e.g. "$8.50"), matching the
|
|
10548
|
+
// resolved-earnings design and the profile positions list.
|
|
10549
|
+
totalPayoutLabel: formatUsd(totals.amountWon, {
|
|
10550
|
+
minimumFractionDigits: 2,
|
|
10551
|
+
maximumFractionDigits: 2
|
|
10552
|
+
}),
|
|
10553
|
+
isClaiming: claimWinnings.isClaiming(claimKey),
|
|
10554
|
+
onClaim: canClaim ? () => {
|
|
10555
|
+
void claimWinnings.claim({
|
|
10556
|
+
claimKey,
|
|
10557
|
+
winningOutcomeIds: totals.winningOutcomeIds
|
|
10558
|
+
});
|
|
10559
|
+
} : void 0
|
|
10560
|
+
};
|
|
10561
|
+
}, [claimWinnings, marketId, positions, shouldFetch]);
|
|
10562
|
+
}
|
|
10194
10563
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10195
10564
|
0 && (module.exports = {
|
|
10196
10565
|
PlaceOrder,
|
|
@@ -10211,5 +10580,7 @@ var import_hooks30 = require("@agg-build/hooks");
|
|
|
10211
10580
|
getTradingVenueLabel,
|
|
10212
10581
|
parseAmount,
|
|
10213
10582
|
parseVenue,
|
|
10214
|
-
|
|
10583
|
+
useClaimWinnings,
|
|
10584
|
+
useEventTradingContext,
|
|
10585
|
+
useResolvedMarketClaim
|
|
10215
10586
|
});
|