@agg-build/ui 1.0.2 → 1.1.0
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-4ILR2YH3.mjs → chunk-7JEJIGG4.mjs} +2 -2
- package/dist/{chunk-WFS772A3.mjs → chunk-F3SU7BRE.mjs} +1 -1
- package/dist/{chunk-3IY2GA2D.mjs → chunk-IT2Y62MG.mjs} +25 -23
- package/dist/{chunk-YSCHNVBZ.mjs → chunk-JDYZJKTE.mjs} +2 -2
- package/dist/{chunk-PEVG67XU.mjs → chunk-KDMNFHPL.mjs} +1 -1
- package/dist/{chunk-XDZLCWUZ.mjs → chunk-OHEZGKFM.mjs} +44 -26
- package/dist/{chunk-TLGQ4LID.mjs → chunk-R6DETAZ6.mjs} +732 -695
- package/dist/events.js +843 -807
- package/dist/events.mjs +3 -3
- package/dist/index.js +2266 -2207
- package/dist/index.mjs +9 -7
- package/dist/modals.js +755 -719
- package/dist/modals.mjs +3 -3
- package/dist/pages.js +1549 -1492
- package/dist/pages.mjs +6 -6
- package/dist/primitives.js +733 -695
- package/dist/primitives.mjs +3 -1
- package/dist/trading.js +525 -471
- package/dist/trading.mjs +4 -4
- package/dist/types/pages/user-profile/components/available-balance-card.d.mts +0 -1
- package/dist/types/pages/user-profile/components/available-balance-card.d.ts +0 -1
- package/dist/types/primitives/icon/icon.types.d.mts +1 -2
- package/dist/types/primitives/icon/icon.types.d.ts +1 -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/lock.d.mts +5 -0
- package/dist/types/primitives/icon/svg/lock.d.ts +5 -0
- package/package.json +3 -3
package/dist/modals.js
CHANGED
|
@@ -2320,6 +2320,7 @@ InfoIcon.displayName = "InfoIcon";
|
|
|
2320
2320
|
|
|
2321
2321
|
// src/primitives/icon/icon.constants.ts
|
|
2322
2322
|
var iconSizeClasses = {
|
|
2323
|
+
xs: "h-3 w-3",
|
|
2323
2324
|
small: "h-4 w-4",
|
|
2324
2325
|
medium: "h-6 w-6",
|
|
2325
2326
|
large: "h-8 w-8"
|
|
@@ -2615,11 +2616,45 @@ var LinkAccountsIcon = (_a) => {
|
|
|
2615
2616
|
};
|
|
2616
2617
|
LinkAccountsIcon.displayName = "LinkAccountsIcon";
|
|
2617
2618
|
|
|
2618
|
-
// src/primitives/icon/svg/
|
|
2619
|
+
// src/primitives/icon/svg/lock.tsx
|
|
2619
2620
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2620
|
-
var
|
|
2621
|
+
var LockIcon = (_a) => {
|
|
2621
2622
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2622
2623
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
2624
|
+
"svg",
|
|
2625
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
2626
|
+
viewBox: "0 0 12 12",
|
|
2627
|
+
className,
|
|
2628
|
+
fill: "none",
|
|
2629
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2630
|
+
}, getIconA11yProps(title)), props), {
|
|
2631
|
+
children: [
|
|
2632
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("title", { children: title }) : null,
|
|
2633
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2634
|
+
"path",
|
|
2635
|
+
{
|
|
2636
|
+
d: "M9.5 4.212V3.5C9.5 2.57174 9.13125 1.6815 8.47487 1.02513C7.8185 0.368749 6.92826 0 6 0C5.07174 0 4.1815 0.368749 3.52513 1.02513C2.86875 1.6815 2.5 2.57174 2.5 3.5V4.212C2.05468 4.40635 1.67565 4.72626 1.40925 5.13261C1.14285 5.53895 1.00064 6.01412 1 6.5V9.5C1.00079 10.1628 1.26444 10.7982 1.73311 11.2669C2.20178 11.7356 2.8372 11.9992 3.5 12H8.5C9.1628 11.9992 9.79822 11.7356 10.2669 11.2669C10.7356 10.7982 10.9992 10.1628 11 9.5V6.5C10.9994 6.01412 10.8571 5.53895 10.5908 5.13261C10.3244 4.72626 9.94532 4.40635 9.5 4.212ZM3.5 3.5C3.5 2.83696 3.76339 2.20107 4.23223 1.73223C4.70107 1.26339 5.33696 1 6 1C6.66304 1 7.29893 1.26339 7.76777 1.73223C8.23661 2.20107 8.5 2.83696 8.5 3.5V4H3.5V3.5ZM10 9.5C10 9.89782 9.84196 10.2794 9.56066 10.5607C9.27936 10.842 8.89782 11 8.5 11H3.5C3.10218 11 2.72064 10.842 2.43934 10.5607C2.15804 10.2794 2 9.89782 2 9.5V6.5C2 6.10218 2.15804 5.72064 2.43934 5.43934C2.72064 5.15804 3.10218 5 3.5 5H8.5C8.89782 5 9.27936 5.15804 9.56066 5.43934C9.84196 5.72064 10 6.10218 10 6.5V9.5Z",
|
|
2637
|
+
fill: "currentColor"
|
|
2638
|
+
}
|
|
2639
|
+
),
|
|
2640
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2641
|
+
"path",
|
|
2642
|
+
{
|
|
2643
|
+
d: "M6 7C5.86739 7 5.74021 7.05268 5.64645 7.14645C5.55268 7.24021 5.5 7.36739 5.5 7.5V8.5C5.5 8.63261 5.55268 8.75979 5.64645 8.85355C5.74021 8.94732 5.86739 9 6 9C6.13261 9 6.25979 8.94732 6.35355 8.85355C6.44732 8.75979 6.5 8.63261 6.5 8.5V7.5C6.5 7.36739 6.44732 7.24021 6.35355 7.14645C6.25979 7.05268 6.13261 7 6 7Z",
|
|
2644
|
+
fill: "currentColor"
|
|
2645
|
+
}
|
|
2646
|
+
)
|
|
2647
|
+
]
|
|
2648
|
+
})
|
|
2649
|
+
);
|
|
2650
|
+
};
|
|
2651
|
+
LockIcon.displayName = "LockIcon";
|
|
2652
|
+
|
|
2653
|
+
// src/primitives/icon/svg/pencil.tsx
|
|
2654
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2655
|
+
var PencilIcon = (_a) => {
|
|
2656
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
2623
2658
|
"svg",
|
|
2624
2659
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2625
2660
|
viewBox: "0 0 16 16",
|
|
@@ -2627,15 +2662,15 @@ var PencilIcon = (_a) => {
|
|
|
2627
2662
|
fill: "none"
|
|
2628
2663
|
}, getIconA11yProps(title)), props), {
|
|
2629
2664
|
children: [
|
|
2630
|
-
title ? /* @__PURE__ */ (0,
|
|
2631
|
-
/* @__PURE__ */ (0,
|
|
2665
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("title", { children: title }) : null,
|
|
2666
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("g", { clipPath: "url(#pencil_clip)", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2632
2667
|
"path",
|
|
2633
2668
|
{
|
|
2634
2669
|
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",
|
|
2635
2670
|
fill: "currentColor"
|
|
2636
2671
|
}
|
|
2637
2672
|
) }),
|
|
2638
|
-
/* @__PURE__ */ (0,
|
|
2673
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("clipPath", { id: "pencil_clip", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
2639
2674
|
]
|
|
2640
2675
|
})
|
|
2641
2676
|
);
|
|
@@ -2643,10 +2678,10 @@ var PencilIcon = (_a) => {
|
|
|
2643
2678
|
PencilIcon.displayName = "PencilIcon";
|
|
2644
2679
|
|
|
2645
2680
|
// src/primitives/icon/svg/play-square.tsx
|
|
2646
|
-
var
|
|
2681
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2647
2682
|
var PlaySquareIcon = (_a) => {
|
|
2648
2683
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2649
|
-
return /* @__PURE__ */ (0,
|
|
2684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
2650
2685
|
"svg",
|
|
2651
2686
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2652
2687
|
viewBox: "0 0 16 16",
|
|
@@ -2654,15 +2689,15 @@ var PlaySquareIcon = (_a) => {
|
|
|
2654
2689
|
fill: "none"
|
|
2655
2690
|
}, getIconA11yProps(title)), props), {
|
|
2656
2691
|
children: [
|
|
2657
|
-
title ? /* @__PURE__ */ (0,
|
|
2658
|
-
/* @__PURE__ */ (0,
|
|
2692
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("title", { children: title }) : null,
|
|
2693
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("g", { clipPath: "url(#play-square-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2659
2694
|
"path",
|
|
2660
2695
|
{
|
|
2661
2696
|
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",
|
|
2662
2697
|
fill: "currentColor"
|
|
2663
2698
|
}
|
|
2664
2699
|
) }),
|
|
2665
|
-
/* @__PURE__ */ (0,
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("clipPath", { id: "play-square-clip", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
2666
2701
|
]
|
|
2667
2702
|
})
|
|
2668
2703
|
);
|
|
@@ -2670,10 +2705,10 @@ var PlaySquareIcon = (_a) => {
|
|
|
2670
2705
|
PlaySquareIcon.displayName = "PlaySquareIcon";
|
|
2671
2706
|
|
|
2672
2707
|
// src/primitives/icon/svg/quotes-warning.tsx
|
|
2673
|
-
var
|
|
2708
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2674
2709
|
var QuotesWarningIcon = (_a) => {
|
|
2675
2710
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2676
|
-
return /* @__PURE__ */ (0,
|
|
2711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
2677
2712
|
"svg",
|
|
2678
2713
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2679
2714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2684,8 +2719,8 @@ var QuotesWarningIcon = (_a) => {
|
|
|
2684
2719
|
className
|
|
2685
2720
|
}, getIconA11yProps(title)), props), {
|
|
2686
2721
|
children: [
|
|
2687
|
-
title ? /* @__PURE__ */ (0,
|
|
2688
|
-
/* @__PURE__ */ (0,
|
|
2722
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("title", { children: title }) : null,
|
|
2723
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2689
2724
|
"path",
|
|
2690
2725
|
{
|
|
2691
2726
|
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",
|
|
@@ -2699,10 +2734,10 @@ var QuotesWarningIcon = (_a) => {
|
|
|
2699
2734
|
QuotesWarningIcon.displayName = "QuotesWarningIcon";
|
|
2700
2735
|
|
|
2701
2736
|
// src/primitives/icon/svg/profile-about-tab.tsx
|
|
2702
|
-
var
|
|
2737
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2703
2738
|
var ProfileAboutTabIcon = (_a) => {
|
|
2704
2739
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2705
|
-
return /* @__PURE__ */ (0,
|
|
2740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
2706
2741
|
"svg",
|
|
2707
2742
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2708
2743
|
viewBox: "0 0 16 16",
|
|
@@ -2710,16 +2745,16 @@ var ProfileAboutTabIcon = (_a) => {
|
|
|
2710
2745
|
fill: "none"
|
|
2711
2746
|
}, getIconA11yProps(title)), props), {
|
|
2712
2747
|
children: [
|
|
2713
|
-
title ? /* @__PURE__ */ (0,
|
|
2714
|
-
/* @__PURE__ */ (0,
|
|
2715
|
-
/* @__PURE__ */ (0,
|
|
2748
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("title", { children: title }) : null,
|
|
2749
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("g", { clipPath: "url(#clip_profile_about_tab)", children: [
|
|
2750
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2716
2751
|
"path",
|
|
2717
2752
|
{
|
|
2718
2753
|
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",
|
|
2719
2754
|
fill: "currentColor"
|
|
2720
2755
|
}
|
|
2721
2756
|
),
|
|
2722
|
-
/* @__PURE__ */ (0,
|
|
2757
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2723
2758
|
"path",
|
|
2724
2759
|
{
|
|
2725
2760
|
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",
|
|
@@ -2727,7 +2762,7 @@ var ProfileAboutTabIcon = (_a) => {
|
|
|
2727
2762
|
}
|
|
2728
2763
|
)
|
|
2729
2764
|
] }),
|
|
2730
|
-
/* @__PURE__ */ (0,
|
|
2765
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("clipPath", { id: "clip_profile_about_tab", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
2731
2766
|
]
|
|
2732
2767
|
})
|
|
2733
2768
|
);
|
|
@@ -2735,7 +2770,7 @@ var ProfileAboutTabIcon = (_a) => {
|
|
|
2735
2770
|
ProfileAboutTabIcon.displayName = "ProfileAboutTabIcon";
|
|
2736
2771
|
|
|
2737
2772
|
// src/primitives/icon/svg/profile-accounts-wallets-tab.tsx
|
|
2738
|
-
var
|
|
2773
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2739
2774
|
var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
2740
2775
|
var _b = _a, {
|
|
2741
2776
|
title,
|
|
@@ -2744,7 +2779,7 @@ var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
|
2744
2779
|
"title",
|
|
2745
2780
|
"className"
|
|
2746
2781
|
]);
|
|
2747
|
-
return /* @__PURE__ */ (0,
|
|
2782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
2748
2783
|
"svg",
|
|
2749
2784
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2750
2785
|
viewBox: "0 0 16 16",
|
|
@@ -2752,15 +2787,15 @@ var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
|
2752
2787
|
fill: "none"
|
|
2753
2788
|
}, getIconA11yProps(title)), props), {
|
|
2754
2789
|
children: [
|
|
2755
|
-
title ? /* @__PURE__ */ (0,
|
|
2756
|
-
/* @__PURE__ */ (0,
|
|
2790
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("title", { children: title }) : null,
|
|
2791
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("g", { clipPath: "url(#clip_profile_accounts_wallets_tab)", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2757
2792
|
"path",
|
|
2758
2793
|
{
|
|
2759
2794
|
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",
|
|
2760
2795
|
fill: "currentColor"
|
|
2761
2796
|
}
|
|
2762
2797
|
) }),
|
|
2763
|
-
/* @__PURE__ */ (0,
|
|
2798
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("clipPath", { id: "clip_profile_accounts_wallets_tab", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
2764
2799
|
]
|
|
2765
2800
|
})
|
|
2766
2801
|
);
|
|
@@ -2768,10 +2803,10 @@ var ProfileAccountsWalletsTabIcon = (_a) => {
|
|
|
2768
2803
|
ProfileAccountsWalletsTabIcon.displayName = "ProfileAccountsWalletsTabIcon";
|
|
2769
2804
|
|
|
2770
2805
|
// src/primitives/icon/svg/profile.tsx
|
|
2771
|
-
var
|
|
2806
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2772
2807
|
var ProfileIcon = (_a) => {
|
|
2773
2808
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2774
|
-
return /* @__PURE__ */ (0,
|
|
2809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2775
2810
|
"svg",
|
|
2776
2811
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2777
2812
|
viewBox: "0 0 16 16",
|
|
@@ -2779,16 +2814,16 @@ var ProfileIcon = (_a) => {
|
|
|
2779
2814
|
fill: "none"
|
|
2780
2815
|
}, getIconA11yProps(title)), props), {
|
|
2781
2816
|
children: [
|
|
2782
|
-
title ? /* @__PURE__ */ (0,
|
|
2783
|
-
/* @__PURE__ */ (0,
|
|
2784
|
-
/* @__PURE__ */ (0,
|
|
2817
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("title", { children: title }) : null,
|
|
2818
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("g", { clipPath: "url(#profile-clip)", children: [
|
|
2819
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2785
2820
|
"path",
|
|
2786
2821
|
{
|
|
2787
2822
|
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",
|
|
2788
2823
|
fill: "currentColor"
|
|
2789
2824
|
}
|
|
2790
2825
|
),
|
|
2791
|
-
/* @__PURE__ */ (0,
|
|
2826
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2792
2827
|
"path",
|
|
2793
2828
|
{
|
|
2794
2829
|
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",
|
|
@@ -2796,7 +2831,7 @@ var ProfileIcon = (_a) => {
|
|
|
2796
2831
|
}
|
|
2797
2832
|
)
|
|
2798
2833
|
] }),
|
|
2799
|
-
/* @__PURE__ */ (0,
|
|
2834
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("clipPath", { id: "profile-clip", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
2800
2835
|
]
|
|
2801
2836
|
})
|
|
2802
2837
|
);
|
|
@@ -2804,10 +2839,10 @@ var ProfileIcon = (_a) => {
|
|
|
2804
2839
|
ProfileIcon.displayName = "ProfileIcon";
|
|
2805
2840
|
|
|
2806
2841
|
// src/primitives/icon/svg/recenter.tsx
|
|
2807
|
-
var
|
|
2842
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2808
2843
|
var RecenterIcon = (_a) => {
|
|
2809
2844
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2810
|
-
return /* @__PURE__ */ (0,
|
|
2845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
2811
2846
|
"svg",
|
|
2812
2847
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2813
2848
|
viewBox: "0 0 16 16",
|
|
@@ -2815,15 +2850,15 @@ var RecenterIcon = (_a) => {
|
|
|
2815
2850
|
fill: "none"
|
|
2816
2851
|
}, getIconA11yProps(title)), props), {
|
|
2817
2852
|
children: [
|
|
2818
|
-
title ? /* @__PURE__ */ (0,
|
|
2819
|
-
/* @__PURE__ */ (0,
|
|
2853
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("title", { children: title }) : null,
|
|
2854
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("g", { clipPath: "url(#recenter-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2820
2855
|
"path",
|
|
2821
2856
|
{
|
|
2822
2857
|
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",
|
|
2823
2858
|
fill: "currentColor"
|
|
2824
2859
|
}
|
|
2825
2860
|
) }),
|
|
2826
|
-
/* @__PURE__ */ (0,
|
|
2861
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("clipPath", { id: "recenter-clip", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
2827
2862
|
]
|
|
2828
2863
|
})
|
|
2829
2864
|
);
|
|
@@ -2831,10 +2866,10 @@ var RecenterIcon = (_a) => {
|
|
|
2831
2866
|
RecenterIcon.displayName = "RecenterIcon";
|
|
2832
2867
|
|
|
2833
2868
|
// src/primitives/icon/svg/revenue-alt.tsx
|
|
2834
|
-
var
|
|
2869
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2835
2870
|
var RevenueAltIcon = (_a) => {
|
|
2836
2871
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2837
|
-
return /* @__PURE__ */ (0,
|
|
2872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
2838
2873
|
"svg",
|
|
2839
2874
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2840
2875
|
viewBox: "0 0 20 20",
|
|
@@ -2842,8 +2877,8 @@ var RevenueAltIcon = (_a) => {
|
|
|
2842
2877
|
fill: "none"
|
|
2843
2878
|
}, getIconA11yProps(title)), props), {
|
|
2844
2879
|
children: [
|
|
2845
|
-
title ? /* @__PURE__ */ (0,
|
|
2846
|
-
/* @__PURE__ */ (0,
|
|
2880
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("title", { children: title }) : null,
|
|
2881
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2847
2882
|
"path",
|
|
2848
2883
|
{
|
|
2849
2884
|
d: "M3 14V6M3 6L1.5 7.5M3 6L4.5 7.5M17 6V14M17 14L15.5 12.5M17 14L18.5 12.5",
|
|
@@ -2853,7 +2888,7 @@ var RevenueAltIcon = (_a) => {
|
|
|
2853
2888
|
strokeLinejoin: "round"
|
|
2854
2889
|
}
|
|
2855
2890
|
),
|
|
2856
|
-
/* @__PURE__ */ (0,
|
|
2891
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2857
2892
|
"path",
|
|
2858
2893
|
{
|
|
2859
2894
|
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",
|
|
@@ -2870,10 +2905,10 @@ var RevenueAltIcon = (_a) => {
|
|
|
2870
2905
|
RevenueAltIcon.displayName = "RevenueAltIcon";
|
|
2871
2906
|
|
|
2872
2907
|
// src/primitives/icon/svg/search.tsx
|
|
2873
|
-
var
|
|
2908
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2874
2909
|
var SearchIcon = (_a) => {
|
|
2875
2910
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2876
|
-
return /* @__PURE__ */ (0,
|
|
2911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
2877
2912
|
"svg",
|
|
2878
2913
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2879
2914
|
viewBox: "0 0 16 16",
|
|
@@ -2882,8 +2917,8 @@ var SearchIcon = (_a) => {
|
|
|
2882
2917
|
className
|
|
2883
2918
|
}, getIconA11yProps(title)), props), {
|
|
2884
2919
|
children: [
|
|
2885
|
-
title ? /* @__PURE__ */ (0,
|
|
2886
|
-
/* @__PURE__ */ (0,
|
|
2920
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("title", { children: title }) : null,
|
|
2921
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2887
2922
|
"path",
|
|
2888
2923
|
{
|
|
2889
2924
|
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",
|
|
@@ -2893,7 +2928,7 @@ var SearchIcon = (_a) => {
|
|
|
2893
2928
|
strokeLinejoin: "round"
|
|
2894
2929
|
}
|
|
2895
2930
|
),
|
|
2896
|
-
/* @__PURE__ */ (0,
|
|
2931
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
2897
2932
|
"path",
|
|
2898
2933
|
{
|
|
2899
2934
|
d: "M13.6668 13.6666L11.1667 11.1666",
|
|
@@ -2910,10 +2945,10 @@ var SearchIcon = (_a) => {
|
|
|
2910
2945
|
SearchIcon.displayName = "SearchIcon";
|
|
2911
2946
|
|
|
2912
2947
|
// src/primitives/icon/svg/shield-trust.tsx
|
|
2913
|
-
var
|
|
2948
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
2914
2949
|
var ShieldTrustIcon = (_a) => {
|
|
2915
2950
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2916
|
-
return /* @__PURE__ */ (0,
|
|
2951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
2917
2952
|
"svg",
|
|
2918
2953
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2919
2954
|
viewBox: "0 0 16 16",
|
|
@@ -2921,15 +2956,15 @@ var ShieldTrustIcon = (_a) => {
|
|
|
2921
2956
|
fill: "none"
|
|
2922
2957
|
}, getIconA11yProps(title)), props), {
|
|
2923
2958
|
children: [
|
|
2924
|
-
title ? /* @__PURE__ */ (0,
|
|
2925
|
-
/* @__PURE__ */ (0,
|
|
2959
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("title", { children: title }) : null,
|
|
2960
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
2926
2961
|
"path",
|
|
2927
2962
|
{
|
|
2928
2963
|
d: "M8 1.25L13.5 3.25V7.08C13.5 10.09 11.62 12.74 8 14.75C4.38 12.74 2.5 10.09 2.5 7.08V3.25L8 1.25Z",
|
|
2929
2964
|
fill: "currentColor"
|
|
2930
2965
|
}
|
|
2931
2966
|
),
|
|
2932
|
-
/* @__PURE__ */ (0,
|
|
2967
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
2933
2968
|
"path",
|
|
2934
2969
|
{
|
|
2935
2970
|
d: "M5.5 8.2L7.2 9.9L10.8 6.3",
|
|
@@ -2946,10 +2981,10 @@ var ShieldTrustIcon = (_a) => {
|
|
|
2946
2981
|
ShieldTrustIcon.displayName = "ShieldTrustIcon";
|
|
2947
2982
|
|
|
2948
2983
|
// src/primitives/icon/svg/sparkles-filled.tsx
|
|
2949
|
-
var
|
|
2984
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
2950
2985
|
var SparklesFilledIcon = (_a) => {
|
|
2951
2986
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2952
|
-
return /* @__PURE__ */ (0,
|
|
2987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
2953
2988
|
"svg",
|
|
2954
2989
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2955
2990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2960,15 +2995,15 @@ var SparklesFilledIcon = (_a) => {
|
|
|
2960
2995
|
className
|
|
2961
2996
|
}, getIconA11yProps(title)), props), {
|
|
2962
2997
|
children: [
|
|
2963
|
-
/* @__PURE__ */ (0,
|
|
2998
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("g", { clipPath: "url(#clip0_2028_8371)", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
2964
2999
|
"path",
|
|
2965
3000
|
{
|
|
2966
3001
|
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",
|
|
2967
3002
|
fill: "currentColor"
|
|
2968
3003
|
}
|
|
2969
3004
|
) }),
|
|
2970
|
-
/* @__PURE__ */ (0,
|
|
2971
|
-
/* @__PURE__ */ (0,
|
|
3005
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("defs", { children: [
|
|
3006
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
2972
3007
|
"linearGradient",
|
|
2973
3008
|
{
|
|
2974
3009
|
id: "paint0_linear_2028_8371",
|
|
@@ -2978,12 +3013,12 @@ var SparklesFilledIcon = (_a) => {
|
|
|
2978
3013
|
y2: "7.99997",
|
|
2979
3014
|
gradientUnits: "userSpaceOnUse",
|
|
2980
3015
|
children: [
|
|
2981
|
-
/* @__PURE__ */ (0,
|
|
2982
|
-
/* @__PURE__ */ (0,
|
|
3016
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("stop", { stopColor: "currentColor" }),
|
|
3017
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("stop", { offset: "1", stopColor: "currentColor" })
|
|
2983
3018
|
]
|
|
2984
3019
|
}
|
|
2985
3020
|
),
|
|
2986
|
-
/* @__PURE__ */ (0,
|
|
3021
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("clipPath", { id: "clip0_2028_8371", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("rect", { width: "16", height: "16", fill: "white" }) })
|
|
2987
3022
|
] })
|
|
2988
3023
|
]
|
|
2989
3024
|
})
|
|
@@ -2992,10 +3027,10 @@ var SparklesFilledIcon = (_a) => {
|
|
|
2992
3027
|
SparklesFilledIcon.displayName = "SparklesFilledIcon";
|
|
2993
3028
|
|
|
2994
3029
|
// src/primitives/icon/svg/stay-in-control.tsx
|
|
2995
|
-
var
|
|
3030
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
2996
3031
|
var StayInControlIcon = (_a) => {
|
|
2997
3032
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2998
|
-
return /* @__PURE__ */ (0,
|
|
3033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
2999
3034
|
"svg",
|
|
3000
3035
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3001
3036
|
width: "28",
|
|
@@ -3006,16 +3041,16 @@ var StayInControlIcon = (_a) => {
|
|
|
3006
3041
|
className
|
|
3007
3042
|
}, getIconA11yProps(title)), props), {
|
|
3008
3043
|
children: [
|
|
3009
|
-
title ? /* @__PURE__ */ (0,
|
|
3010
|
-
/* @__PURE__ */ (0,
|
|
3011
|
-
/* @__PURE__ */ (0,
|
|
3044
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("title", { children: title }) : null,
|
|
3045
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
|
|
3046
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3012
3047
|
"path",
|
|
3013
3048
|
{
|
|
3014
3049
|
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",
|
|
3015
3050
|
fill: "currentColor"
|
|
3016
3051
|
}
|
|
3017
3052
|
),
|
|
3018
|
-
/* @__PURE__ */ (0,
|
|
3053
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3019
3054
|
"path",
|
|
3020
3055
|
{
|
|
3021
3056
|
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",
|
|
@@ -3023,7 +3058,7 @@ var StayInControlIcon = (_a) => {
|
|
|
3023
3058
|
}
|
|
3024
3059
|
)
|
|
3025
3060
|
] }),
|
|
3026
|
-
/* @__PURE__ */ (0,
|
|
3061
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
3027
3062
|
]
|
|
3028
3063
|
})
|
|
3029
3064
|
);
|
|
@@ -3031,10 +3066,10 @@ var StayInControlIcon = (_a) => {
|
|
|
3031
3066
|
StayInControlIcon.displayName = "StayInControlIcon";
|
|
3032
3067
|
|
|
3033
3068
|
// src/primitives/icon/svg/success-check.tsx
|
|
3034
|
-
var
|
|
3069
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3035
3070
|
var SuccessCheckIcon = (_a) => {
|
|
3036
3071
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3037
|
-
return /* @__PURE__ */ (0,
|
|
3072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
3038
3073
|
"svg",
|
|
3039
3074
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3040
3075
|
width: "24",
|
|
@@ -3045,8 +3080,8 @@ var SuccessCheckIcon = (_a) => {
|
|
|
3045
3080
|
className
|
|
3046
3081
|
}, getIconA11yProps(title)), props), {
|
|
3047
3082
|
children: [
|
|
3048
|
-
title ? /* @__PURE__ */ (0,
|
|
3049
|
-
/* @__PURE__ */ (0,
|
|
3083
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("title", { children: title }) : null,
|
|
3084
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3050
3085
|
"path",
|
|
3051
3086
|
{
|
|
3052
3087
|
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",
|
|
@@ -3060,10 +3095,10 @@ var SuccessCheckIcon = (_a) => {
|
|
|
3060
3095
|
SuccessCheckIcon.displayName = "SuccessCheckIcon";
|
|
3061
3096
|
|
|
3062
3097
|
// src/primitives/icon/svg/telegram.tsx
|
|
3063
|
-
var
|
|
3098
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3064
3099
|
var TelegramIcon = (_a) => {
|
|
3065
3100
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3066
|
-
return /* @__PURE__ */ (0,
|
|
3101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
3067
3102
|
"svg",
|
|
3068
3103
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3069
3104
|
viewBox: "0 0 20 20",
|
|
@@ -3071,8 +3106,8 @@ var TelegramIcon = (_a) => {
|
|
|
3071
3106
|
fill: "none"
|
|
3072
3107
|
}, getIconA11yProps(title)), props), {
|
|
3073
3108
|
children: [
|
|
3074
|
-
title ? /* @__PURE__ */ (0,
|
|
3075
|
-
/* @__PURE__ */ (0,
|
|
3109
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("title", { children: title }) : null,
|
|
3110
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3076
3111
|
"path",
|
|
3077
3112
|
{
|
|
3078
3113
|
fillRule: "evenodd",
|
|
@@ -3081,7 +3116,7 @@ var TelegramIcon = (_a) => {
|
|
|
3081
3116
|
fill: "currentColor"
|
|
3082
3117
|
}
|
|
3083
3118
|
) }),
|
|
3084
|
-
/* @__PURE__ */ (0,
|
|
3119
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
3085
3120
|
]
|
|
3086
3121
|
})
|
|
3087
3122
|
);
|
|
@@ -3089,10 +3124,10 @@ var TelegramIcon = (_a) => {
|
|
|
3089
3124
|
TelegramIcon.displayName = "TelegramIcon";
|
|
3090
3125
|
|
|
3091
3126
|
// src/primitives/icon/svg/triangle-down.tsx
|
|
3092
|
-
var
|
|
3127
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3093
3128
|
var TriangleDownIcon = (_a) => {
|
|
3094
3129
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3095
|
-
return /* @__PURE__ */ (0,
|
|
3130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
3096
3131
|
"svg",
|
|
3097
3132
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3098
3133
|
viewBox: "0 0 8 8",
|
|
@@ -3100,16 +3135,16 @@ var TriangleDownIcon = (_a) => {
|
|
|
3100
3135
|
fill: "none"
|
|
3101
3136
|
}, getIconA11yProps(title)), props), {
|
|
3102
3137
|
children: [
|
|
3103
|
-
title ? /* @__PURE__ */ (0,
|
|
3104
|
-
/* @__PURE__ */ (0,
|
|
3105
|
-
/* @__PURE__ */ (0,
|
|
3138
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("title", { children: title }) : null,
|
|
3139
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
|
|
3140
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3106
3141
|
"path",
|
|
3107
3142
|
{
|
|
3108
3143
|
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",
|
|
3109
3144
|
fill: "currentColor"
|
|
3110
3145
|
}
|
|
3111
3146
|
),
|
|
3112
|
-
/* @__PURE__ */ (0,
|
|
3147
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3113
3148
|
"path",
|
|
3114
3149
|
{
|
|
3115
3150
|
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",
|
|
@@ -3117,7 +3152,7 @@ var TriangleDownIcon = (_a) => {
|
|
|
3117
3152
|
}
|
|
3118
3153
|
)
|
|
3119
3154
|
] }),
|
|
3120
|
-
/* @__PURE__ */ (0,
|
|
3155
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
3121
3156
|
]
|
|
3122
3157
|
})
|
|
3123
3158
|
);
|
|
@@ -3125,10 +3160,10 @@ var TriangleDownIcon = (_a) => {
|
|
|
3125
3160
|
TriangleDownIcon.displayName = "TriangleDownIcon";
|
|
3126
3161
|
|
|
3127
3162
|
// src/primitives/icon/svg/triangle-up.tsx
|
|
3128
|
-
var
|
|
3163
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3129
3164
|
var TriangleUpIcon = (_a) => {
|
|
3130
3165
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3131
|
-
return /* @__PURE__ */ (0,
|
|
3166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
3132
3167
|
"svg",
|
|
3133
3168
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3134
3169
|
viewBox: "0 0 8 8",
|
|
@@ -3136,16 +3171,16 @@ var TriangleUpIcon = (_a) => {
|
|
|
3136
3171
|
fill: "none"
|
|
3137
3172
|
}, getIconA11yProps(title)), props), {
|
|
3138
3173
|
children: [
|
|
3139
|
-
title ? /* @__PURE__ */ (0,
|
|
3140
|
-
/* @__PURE__ */ (0,
|
|
3141
|
-
/* @__PURE__ */ (0,
|
|
3174
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("title", { children: title }) : null,
|
|
3175
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
|
|
3176
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3142
3177
|
"path",
|
|
3143
3178
|
{
|
|
3144
3179
|
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",
|
|
3145
3180
|
fill: "currentColor"
|
|
3146
3181
|
}
|
|
3147
3182
|
),
|
|
3148
|
-
/* @__PURE__ */ (0,
|
|
3183
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3149
3184
|
"path",
|
|
3150
3185
|
{
|
|
3151
3186
|
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",
|
|
@@ -3153,7 +3188,7 @@ var TriangleUpIcon = (_a) => {
|
|
|
3153
3188
|
}
|
|
3154
3189
|
)
|
|
3155
3190
|
] }),
|
|
3156
|
-
/* @__PURE__ */ (0,
|
|
3191
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
3157
3192
|
]
|
|
3158
3193
|
})
|
|
3159
3194
|
);
|
|
@@ -3161,10 +3196,10 @@ var TriangleUpIcon = (_a) => {
|
|
|
3161
3196
|
TriangleUpIcon.displayName = "TriangleUpIcon";
|
|
3162
3197
|
|
|
3163
3198
|
// src/primitives/icon/svg/triangle-up-filled.tsx
|
|
3164
|
-
var
|
|
3199
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3165
3200
|
var TriangleUpFilledIcon = (_a) => {
|
|
3166
3201
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3167
|
-
return /* @__PURE__ */ (0,
|
|
3202
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
3168
3203
|
"svg",
|
|
3169
3204
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3170
3205
|
viewBox: "0 0 8 8",
|
|
@@ -3172,8 +3207,8 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
3172
3207
|
fill: "none"
|
|
3173
3208
|
}, getIconA11yProps(title)), props), {
|
|
3174
3209
|
children: [
|
|
3175
|
-
title ? /* @__PURE__ */ (0,
|
|
3176
|
-
/* @__PURE__ */ (0,
|
|
3210
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("title", { children: title }) : null,
|
|
3211
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3177
3212
|
"path",
|
|
3178
3213
|
{
|
|
3179
3214
|
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",
|
|
@@ -3187,10 +3222,10 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
3187
3222
|
TriangleUpFilledIcon.displayName = "TriangleUpFilledIcon";
|
|
3188
3223
|
|
|
3189
3224
|
// src/primitives/icon/svg/twitter.tsx
|
|
3190
|
-
var
|
|
3225
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3191
3226
|
var TwitterIcon = (_a) => {
|
|
3192
3227
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3193
|
-
return /* @__PURE__ */ (0,
|
|
3228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
3194
3229
|
"svg",
|
|
3195
3230
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3196
3231
|
viewBox: "0 0 24 24",
|
|
@@ -3198,8 +3233,8 @@ var TwitterIcon = (_a) => {
|
|
|
3198
3233
|
fill: "none"
|
|
3199
3234
|
}, getIconA11yProps(title)), props), {
|
|
3200
3235
|
children: [
|
|
3201
|
-
title ? /* @__PURE__ */ (0,
|
|
3202
|
-
/* @__PURE__ */ (0,
|
|
3236
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("title", { children: title }) : null,
|
|
3237
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3203
3238
|
"path",
|
|
3204
3239
|
{
|
|
3205
3240
|
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",
|
|
@@ -3213,10 +3248,10 @@ var TwitterIcon = (_a) => {
|
|
|
3213
3248
|
TwitterIcon.displayName = "TwitterIcon";
|
|
3214
3249
|
|
|
3215
3250
|
// src/primitives/icon/svg/upload.tsx
|
|
3216
|
-
var
|
|
3251
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3217
3252
|
var UploadIcon = (_a) => {
|
|
3218
3253
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3219
|
-
return /* @__PURE__ */ (0,
|
|
3254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
3220
3255
|
"svg",
|
|
3221
3256
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3222
3257
|
viewBox: "0 0 16 16",
|
|
@@ -3224,16 +3259,16 @@ var UploadIcon = (_a) => {
|
|
|
3224
3259
|
fill: "none"
|
|
3225
3260
|
}, getIconA11yProps(title)), props), {
|
|
3226
3261
|
children: [
|
|
3227
|
-
title ? /* @__PURE__ */ (0,
|
|
3228
|
-
/* @__PURE__ */ (0,
|
|
3229
|
-
/* @__PURE__ */ (0,
|
|
3262
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("title", { children: title }) : null,
|
|
3263
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("g", { clipPath: "url(#upload-clip)", children: [
|
|
3264
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3230
3265
|
"path",
|
|
3231
3266
|
{
|
|
3232
3267
|
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",
|
|
3233
3268
|
fill: "currentColor"
|
|
3234
3269
|
}
|
|
3235
3270
|
),
|
|
3236
|
-
/* @__PURE__ */ (0,
|
|
3271
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
3237
3272
|
"path",
|
|
3238
3273
|
{
|
|
3239
3274
|
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",
|
|
@@ -3241,7 +3276,7 @@ var UploadIcon = (_a) => {
|
|
|
3241
3276
|
}
|
|
3242
3277
|
)
|
|
3243
3278
|
] }),
|
|
3244
|
-
/* @__PURE__ */ (0,
|
|
3279
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("clipPath", { id: "upload-clip", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3245
3280
|
]
|
|
3246
3281
|
})
|
|
3247
3282
|
);
|
|
@@ -3249,10 +3284,10 @@ var UploadIcon = (_a) => {
|
|
|
3249
3284
|
UploadIcon.displayName = "UploadIcon";
|
|
3250
3285
|
|
|
3251
3286
|
// src/primitives/icon/svg/user-trust.tsx
|
|
3252
|
-
var
|
|
3287
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
3253
3288
|
var UserTrustIcon = (_a) => {
|
|
3254
3289
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3255
|
-
return /* @__PURE__ */ (0,
|
|
3290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
3256
3291
|
"svg",
|
|
3257
3292
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3258
3293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3261,15 +3296,15 @@ var UserTrustIcon = (_a) => {
|
|
|
3261
3296
|
className
|
|
3262
3297
|
}, getIconA11yProps(title)), props), {
|
|
3263
3298
|
children: [
|
|
3264
|
-
title ? /* @__PURE__ */ (0,
|
|
3265
|
-
/* @__PURE__ */ (0,
|
|
3299
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("title", { children: title }) : null,
|
|
3300
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("g", { clipPath: "url(#clip0_user_trust)", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
3266
3301
|
"path",
|
|
3267
3302
|
{
|
|
3268
3303
|
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",
|
|
3269
3304
|
fill: "currentColor"
|
|
3270
3305
|
}
|
|
3271
3306
|
) }),
|
|
3272
|
-
/* @__PURE__ */ (0,
|
|
3307
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("clipPath", { id: "clip0_user_trust", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("rect", { width: "60", height: "60", fill: "white" }) }) })
|
|
3273
3308
|
]
|
|
3274
3309
|
})
|
|
3275
3310
|
);
|
|
@@ -3277,10 +3312,10 @@ var UserTrustIcon = (_a) => {
|
|
|
3277
3312
|
UserTrustIcon.displayName = "UserTrustIcon";
|
|
3278
3313
|
|
|
3279
3314
|
// src/primitives/icon/svg/usdc.tsx
|
|
3280
|
-
var
|
|
3315
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
3281
3316
|
var UsdcIcon = (_a) => {
|
|
3282
3317
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3283
|
-
return /* @__PURE__ */ (0,
|
|
3318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
3284
3319
|
"svg",
|
|
3285
3320
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3286
3321
|
viewBox: "0 0 32 32",
|
|
@@ -3288,16 +3323,16 @@ var UsdcIcon = (_a) => {
|
|
|
3288
3323
|
fill: "none"
|
|
3289
3324
|
}, getIconA11yProps(title)), props), {
|
|
3290
3325
|
children: [
|
|
3291
|
-
title ? /* @__PURE__ */ (0,
|
|
3292
|
-
/* @__PURE__ */ (0,
|
|
3293
|
-
/* @__PURE__ */ (0,
|
|
3326
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("title", { children: title }) : null,
|
|
3327
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("circle", { cx: "16", cy: "16", r: "16", fill: "#2775CA" }),
|
|
3328
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3294
3329
|
"path",
|
|
3295
3330
|
{
|
|
3296
3331
|
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",
|
|
3297
3332
|
fill: "#fff"
|
|
3298
3333
|
}
|
|
3299
3334
|
),
|
|
3300
|
-
/* @__PURE__ */ (0,
|
|
3335
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
3301
3336
|
"path",
|
|
3302
3337
|
{
|
|
3303
3338
|
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",
|
|
@@ -3311,10 +3346,10 @@ var UsdcIcon = (_a) => {
|
|
|
3311
3346
|
UsdcIcon.displayName = "UsdcIcon";
|
|
3312
3347
|
|
|
3313
3348
|
// src/primitives/icon/svg/wallet.tsx
|
|
3314
|
-
var
|
|
3349
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
3315
3350
|
var WalletIcon = (_a) => {
|
|
3316
3351
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3317
|
-
return /* @__PURE__ */ (0,
|
|
3352
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
3318
3353
|
"svg",
|
|
3319
3354
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3320
3355
|
viewBox: "0 0 24 24",
|
|
@@ -3322,8 +3357,8 @@ var WalletIcon = (_a) => {
|
|
|
3322
3357
|
fill: "none"
|
|
3323
3358
|
}, getIconA11yProps(title)), props), {
|
|
3324
3359
|
children: [
|
|
3325
|
-
title ? /* @__PURE__ */ (0,
|
|
3326
|
-
/* @__PURE__ */ (0,
|
|
3360
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("title", { children: title }) : null,
|
|
3361
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
3327
3362
|
"path",
|
|
3328
3363
|
{
|
|
3329
3364
|
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",
|
|
@@ -3337,10 +3372,10 @@ var WalletIcon = (_a) => {
|
|
|
3337
3372
|
WalletIcon.displayName = "WalletIcon";
|
|
3338
3373
|
|
|
3339
3374
|
// src/primitives/icon/svg/wallet-avatar.tsx
|
|
3340
|
-
var
|
|
3375
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
3341
3376
|
function WalletAvatarIcon(_a) {
|
|
3342
3377
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3343
|
-
return /* @__PURE__ */ (0,
|
|
3378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
3344
3379
|
"svg",
|
|
3345
3380
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3346
3381
|
fill: "none",
|
|
@@ -3348,9 +3383,9 @@ function WalletAvatarIcon(_a) {
|
|
|
3348
3383
|
viewBox: "0 0 16 16"
|
|
3349
3384
|
}, getIconA11yProps(title)), props), {
|
|
3350
3385
|
children: [
|
|
3351
|
-
title ? /* @__PURE__ */ (0,
|
|
3352
|
-
/* @__PURE__ */ (0,
|
|
3353
|
-
/* @__PURE__ */ (0,
|
|
3386
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("title", { children: title }) : null,
|
|
3387
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
|
|
3388
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
|
|
3354
3389
|
]
|
|
3355
3390
|
})
|
|
3356
3391
|
);
|
|
@@ -3358,10 +3393,10 @@ function WalletAvatarIcon(_a) {
|
|
|
3358
3393
|
WalletAvatarIcon.displayName = "WalletAvatarIcon";
|
|
3359
3394
|
|
|
3360
3395
|
// src/primitives/icon/svg/wallet-filled.tsx
|
|
3361
|
-
var
|
|
3396
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
3362
3397
|
var WalletFilledIcon = (_a) => {
|
|
3363
3398
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3364
|
-
return /* @__PURE__ */ (0,
|
|
3399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
3365
3400
|
"svg",
|
|
3366
3401
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3367
3402
|
viewBox: "0 0 14 14",
|
|
@@ -3369,8 +3404,8 @@ var WalletFilledIcon = (_a) => {
|
|
|
3369
3404
|
fill: "none"
|
|
3370
3405
|
}, getIconA11yProps(title)), props), {
|
|
3371
3406
|
children: [
|
|
3372
|
-
title ? /* @__PURE__ */ (0,
|
|
3373
|
-
/* @__PURE__ */ (0,
|
|
3407
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("title", { children: title }) : null,
|
|
3408
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
3374
3409
|
"path",
|
|
3375
3410
|
{
|
|
3376
3411
|
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",
|
|
@@ -3384,10 +3419,10 @@ var WalletFilledIcon = (_a) => {
|
|
|
3384
3419
|
WalletFilledIcon.displayName = "WalletFilledIcon";
|
|
3385
3420
|
|
|
3386
3421
|
// src/primitives/icon/svg/paper-plane.tsx
|
|
3387
|
-
var
|
|
3422
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
3388
3423
|
var PaperPlaneIcon = (_a) => {
|
|
3389
3424
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3390
|
-
return /* @__PURE__ */ (0,
|
|
3425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
3391
3426
|
"svg",
|
|
3392
3427
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3393
3428
|
viewBox: "0 0 24 24",
|
|
@@ -3395,15 +3430,15 @@ var PaperPlaneIcon = (_a) => {
|
|
|
3395
3430
|
fill: "none"
|
|
3396
3431
|
}, getIconA11yProps(title)), props), {
|
|
3397
3432
|
children: [
|
|
3398
|
-
title ? /* @__PURE__ */ (0,
|
|
3399
|
-
/* @__PURE__ */ (0,
|
|
3433
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("title", { children: title }) : null,
|
|
3434
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("g", { clipPath: "url(#paper-plane-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
3400
3435
|
"path",
|
|
3401
3436
|
{
|
|
3402
3437
|
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",
|
|
3403
3438
|
fill: "currentColor"
|
|
3404
3439
|
}
|
|
3405
3440
|
) }),
|
|
3406
|
-
/* @__PURE__ */ (0,
|
|
3441
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("clipPath", { id: "paper-plane-clip", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
3407
3442
|
]
|
|
3408
3443
|
})
|
|
3409
3444
|
);
|
|
@@ -3411,10 +3446,10 @@ var PaperPlaneIcon = (_a) => {
|
|
|
3411
3446
|
PaperPlaneIcon.displayName = "PaperPlaneIcon";
|
|
3412
3447
|
|
|
3413
3448
|
// src/primitives/icon/svg/warning.tsx
|
|
3414
|
-
var
|
|
3449
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
3415
3450
|
var WarningIcon = (_a) => {
|
|
3416
3451
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3417
|
-
return /* @__PURE__ */ (0,
|
|
3452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
3418
3453
|
"svg",
|
|
3419
3454
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3420
3455
|
width: "14",
|
|
@@ -3425,8 +3460,8 @@ var WarningIcon = (_a) => {
|
|
|
3425
3460
|
className
|
|
3426
3461
|
}, getIconA11yProps(title)), props), {
|
|
3427
3462
|
children: [
|
|
3428
|
-
title ? /* @__PURE__ */ (0,
|
|
3429
|
-
/* @__PURE__ */ (0,
|
|
3463
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("title", { children: title }) : null,
|
|
3464
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
3430
3465
|
"path",
|
|
3431
3466
|
{
|
|
3432
3467
|
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",
|
|
@@ -3440,10 +3475,10 @@ var WarningIcon = (_a) => {
|
|
|
3440
3475
|
WarningIcon.displayName = "WarningIcon";
|
|
3441
3476
|
|
|
3442
3477
|
// src/primitives/icon/svg/warning-filled.tsx
|
|
3443
|
-
var
|
|
3478
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
3444
3479
|
var WarningFilledIcon = (_a) => {
|
|
3445
3480
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
3446
|
-
return /* @__PURE__ */ (0,
|
|
3481
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
3447
3482
|
"svg",
|
|
3448
3483
|
__spreadProps(__spreadValues(__spreadValues({
|
|
3449
3484
|
viewBox: "0 0 16 16",
|
|
@@ -3451,8 +3486,8 @@ var WarningFilledIcon = (_a) => {
|
|
|
3451
3486
|
fill: "none"
|
|
3452
3487
|
}, getIconA11yProps(title)), props), {
|
|
3453
3488
|
children: [
|
|
3454
|
-
title ? /* @__PURE__ */ (0,
|
|
3455
|
-
/* @__PURE__ */ (0,
|
|
3489
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("title", { children: title }) : null,
|
|
3490
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
3456
3491
|
"path",
|
|
3457
3492
|
{
|
|
3458
3493
|
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",
|
|
@@ -3510,6 +3545,7 @@ var iconRegistry = {
|
|
|
3510
3545
|
info: InfoIcon,
|
|
3511
3546
|
"internet-security": InternetSecurityIcon,
|
|
3512
3547
|
"link-accounts": LinkAccountsIcon,
|
|
3548
|
+
lock: LockIcon,
|
|
3513
3549
|
pencil: PencilIcon,
|
|
3514
3550
|
"play-square": PlaySquareIcon,
|
|
3515
3551
|
polygon: PolygonIcon,
|
|
@@ -3552,7 +3588,7 @@ var resolveIconStyle = (color, style) => {
|
|
|
3552
3588
|
};
|
|
3553
3589
|
|
|
3554
3590
|
// src/primitives/icon/index.tsx
|
|
3555
|
-
var
|
|
3591
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
3556
3592
|
var Icon = (_a) => {
|
|
3557
3593
|
var _b = _a, {
|
|
3558
3594
|
name,
|
|
@@ -3576,7 +3612,7 @@ var Icon = (_a) => {
|
|
|
3576
3612
|
}
|
|
3577
3613
|
const resolvedStyle = resolveIconStyle(color, style);
|
|
3578
3614
|
const resolvedClassName = cn(iconSizeClasses[size], className);
|
|
3579
|
-
return /* @__PURE__ */ (0,
|
|
3615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
3580
3616
|
Component,
|
|
3581
3617
|
__spreadValues({
|
|
3582
3618
|
color,
|
|
@@ -3606,7 +3642,7 @@ var resolveLoadingIconAriaLabel = ({
|
|
|
3606
3642
|
};
|
|
3607
3643
|
|
|
3608
3644
|
// src/primitives/loading-icon/index.tsx
|
|
3609
|
-
var
|
|
3645
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
3610
3646
|
var LoadingIcon = ({
|
|
3611
3647
|
size = LOADING_ICON_DEFAULT_SIZE,
|
|
3612
3648
|
variant = "default",
|
|
@@ -3617,7 +3653,7 @@ var LoadingIcon = ({
|
|
|
3617
3653
|
const {
|
|
3618
3654
|
features: { enableAnimations }
|
|
3619
3655
|
} = (0, import_hooks10.useSdkUiConfig)();
|
|
3620
|
-
return /* @__PURE__ */ (0,
|
|
3656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3621
3657
|
"span",
|
|
3622
3658
|
{
|
|
3623
3659
|
role: "status",
|
|
@@ -3630,7 +3666,7 @@ var LoadingIcon = ({
|
|
|
3630
3666
|
"inline-grid place-items-center text-agg-primary will-change-transform",
|
|
3631
3667
|
className
|
|
3632
3668
|
),
|
|
3633
|
-
children: /* @__PURE__ */ (0,
|
|
3669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3634
3670
|
"svg",
|
|
3635
3671
|
{
|
|
3636
3672
|
viewBox: LOADING_ICON_SVG_VIEW_BOX,
|
|
@@ -3638,8 +3674,8 @@ var LoadingIcon = ({
|
|
|
3638
3674
|
"block",
|
|
3639
3675
|
variant === "prominent" ? LOADING_ICON_PROMINENT_FRAME_CLASS : iconSizeClasses[size]
|
|
3640
3676
|
),
|
|
3641
|
-
children: variant === "prominent" ? /* @__PURE__ */ (0,
|
|
3642
|
-
enableAnimations ? /* @__PURE__ */ (0,
|
|
3677
|
+
children: variant === "prominent" ? /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("g", { children: [
|
|
3678
|
+
enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3643
3679
|
"animateTransform",
|
|
3644
3680
|
{
|
|
3645
3681
|
attributeName: "transform",
|
|
@@ -3651,7 +3687,7 @@ var LoadingIcon = ({
|
|
|
3651
3687
|
repeatCount: "indefinite"
|
|
3652
3688
|
}
|
|
3653
3689
|
) : null,
|
|
3654
|
-
/* @__PURE__ */ (0,
|
|
3690
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3655
3691
|
"circle",
|
|
3656
3692
|
{
|
|
3657
3693
|
cx: "22",
|
|
@@ -3665,8 +3701,8 @@ var LoadingIcon = ({
|
|
|
3665
3701
|
strokeDasharray: LOADING_ICON_PROMINENT_DASHARRAY
|
|
3666
3702
|
}
|
|
3667
3703
|
)
|
|
3668
|
-
] }) : /* @__PURE__ */ (0,
|
|
3669
|
-
enableAnimations ? /* @__PURE__ */ (0,
|
|
3704
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("g", { children: [
|
|
3705
|
+
enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3670
3706
|
"animateTransform",
|
|
3671
3707
|
{
|
|
3672
3708
|
attributeName: "transform",
|
|
@@ -3678,7 +3714,7 @@ var LoadingIcon = ({
|
|
|
3678
3714
|
repeatCount: "indefinite"
|
|
3679
3715
|
}
|
|
3680
3716
|
) : null,
|
|
3681
|
-
/* @__PURE__ */ (0,
|
|
3717
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3682
3718
|
"circle",
|
|
3683
3719
|
{
|
|
3684
3720
|
cx: "22",
|
|
@@ -3690,8 +3726,8 @@ var LoadingIcon = ({
|
|
|
3690
3726
|
strokeLinecap: "round",
|
|
3691
3727
|
strokeDasharray: "60 100",
|
|
3692
3728
|
strokeDashoffset: "0",
|
|
3693
|
-
children: enableAnimations ? /* @__PURE__ */ (0,
|
|
3694
|
-
/* @__PURE__ */ (0,
|
|
3729
|
+
children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
|
|
3730
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3695
3731
|
"animate",
|
|
3696
3732
|
{
|
|
3697
3733
|
attributeName: "stroke-dasharray",
|
|
@@ -3700,7 +3736,7 @@ var LoadingIcon = ({
|
|
|
3700
3736
|
repeatCount: "indefinite"
|
|
3701
3737
|
}
|
|
3702
3738
|
),
|
|
3703
|
-
/* @__PURE__ */ (0,
|
|
3739
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
3704
3740
|
"animate",
|
|
3705
3741
|
{
|
|
3706
3742
|
attributeName: "stroke-dashoffset",
|
|
@@ -3721,7 +3757,7 @@ var LoadingIcon = ({
|
|
|
3721
3757
|
LoadingIcon.displayName = "LoadingIcon";
|
|
3722
3758
|
|
|
3723
3759
|
// src/deposit/steps/deposit-method.tsx
|
|
3724
|
-
var
|
|
3760
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
3725
3761
|
var DepositMethodCard = ({
|
|
3726
3762
|
icon,
|
|
3727
3763
|
title,
|
|
@@ -3730,7 +3766,7 @@ var DepositMethodCard = ({
|
|
|
3730
3766
|
highlighted = false,
|
|
3731
3767
|
disabled = false,
|
|
3732
3768
|
onContinue
|
|
3733
|
-
}) => /* @__PURE__ */ (0,
|
|
3769
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
3734
3770
|
"div",
|
|
3735
3771
|
{
|
|
3736
3772
|
className: cn(
|
|
@@ -3752,13 +3788,13 @@ var DepositMethodCard = ({
|
|
|
3752
3788
|
}
|
|
3753
3789
|
},
|
|
3754
3790
|
children: [
|
|
3755
|
-
/* @__PURE__ */ (0,
|
|
3756
|
-
/* @__PURE__ */ (0,
|
|
3757
|
-
/* @__PURE__ */ (0,
|
|
3758
|
-
/* @__PURE__ */ (0,
|
|
3791
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: icon }),
|
|
3792
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
3793
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
|
|
3794
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
|
|
3759
3795
|
] }),
|
|
3760
|
-
value ? /* @__PURE__ */ (0,
|
|
3761
|
-
/* @__PURE__ */ (0,
|
|
3796
|
+
value ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: value }) : null,
|
|
3797
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "shrink-0 text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(ChevronRightIcon, { className: "h-5 w-5" }) })
|
|
3762
3798
|
]
|
|
3763
3799
|
}
|
|
3764
3800
|
);
|
|
@@ -3773,31 +3809,31 @@ var DepositMethodStep = ({
|
|
|
3773
3809
|
onSelectMethod
|
|
3774
3810
|
}) => {
|
|
3775
3811
|
const labels = (0, import_hooks11.useLabels)();
|
|
3776
|
-
return /* @__PURE__ */ (0,
|
|
3777
|
-
/* @__PURE__ */ (0,
|
|
3778
|
-
/* @__PURE__ */ (0,
|
|
3779
|
-
/* @__PURE__ */ (0,
|
|
3812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
|
|
3813
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Modal.Header, { title: labels.deposit.title, hideBorder: true }),
|
|
3814
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-5", children: [
|
|
3815
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("p", { className: "agg-type-body text-agg-foreground", children: [
|
|
3780
3816
|
labels.deposit.balancePrefix,
|
|
3781
3817
|
" ",
|
|
3782
3818
|
formatCompactUsd(balance)
|
|
3783
3819
|
] }),
|
|
3784
|
-
/* @__PURE__ */ (0,
|
|
3785
|
-
showWalletMethod ? /* @__PURE__ */ (0,
|
|
3820
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
3821
|
+
showWalletMethod ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
3786
3822
|
DepositMethodCard,
|
|
3787
3823
|
{
|
|
3788
|
-
icon: /* @__PURE__ */ (0,
|
|
3824
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
|
|
3789
3825
|
title: labels.deposit.methods.walletTitle(walletLabel),
|
|
3790
3826
|
description: labels.deposit.methods.walletDescription,
|
|
3791
|
-
value: isWalletBalanceLoading ? /* @__PURE__ */ (0,
|
|
3827
|
+
value: isWalletBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(LoadingIcon, { size: "small" }) : formatCompactUsd(walletBalance),
|
|
3792
3828
|
highlighted: highlightedMethod === "wallet",
|
|
3793
3829
|
disabled: !depositAddressesReady,
|
|
3794
3830
|
onContinue: () => onSelectMethod("wallet")
|
|
3795
3831
|
}
|
|
3796
3832
|
) : null,
|
|
3797
|
-
/* @__PURE__ */ (0,
|
|
3833
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
3798
3834
|
DepositMethodCard,
|
|
3799
3835
|
{
|
|
3800
|
-
icon: /* @__PURE__ */ (0,
|
|
3836
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(BoltIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
|
|
3801
3837
|
title: labels.deposit.methods.cryptoTitle,
|
|
3802
3838
|
description: labels.deposit.methods.cryptoDescription,
|
|
3803
3839
|
highlighted: highlightedMethod === "crypto",
|
|
@@ -3805,10 +3841,10 @@ var DepositMethodStep = ({
|
|
|
3805
3841
|
onContinue: () => onSelectMethod("crypto")
|
|
3806
3842
|
}
|
|
3807
3843
|
),
|
|
3808
|
-
/* @__PURE__ */ (0,
|
|
3844
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
3809
3845
|
DepositMethodCard,
|
|
3810
3846
|
{
|
|
3811
|
-
icon: /* @__PURE__ */ (0,
|
|
3847
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CreditCardIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
|
|
3812
3848
|
title: labels.deposit.methods.cardTitle,
|
|
3813
3849
|
description: labels.deposit.methods.cardDescription,
|
|
3814
3850
|
highlighted: highlightedMethod === "card",
|
|
@@ -3896,7 +3932,7 @@ var getButtonClassName = ({
|
|
|
3896
3932
|
};
|
|
3897
3933
|
|
|
3898
3934
|
// src/primitives/button/index.tsx
|
|
3899
|
-
var
|
|
3935
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
3900
3936
|
var Button = (_a) => {
|
|
3901
3937
|
var _b = _a, {
|
|
3902
3938
|
children,
|
|
@@ -3925,7 +3961,7 @@ var Button = (_a) => {
|
|
|
3925
3961
|
features: { enableAnimations }
|
|
3926
3962
|
} = (0, import_hooks12.useSdkUiConfig)();
|
|
3927
3963
|
const isDisabled = resolveButtonIsDisabled({ disabled, isLoading });
|
|
3928
|
-
return /* @__PURE__ */ (0,
|
|
3964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
3929
3965
|
"button",
|
|
3930
3966
|
__spreadProps(__spreadValues({
|
|
3931
3967
|
type,
|
|
@@ -3934,7 +3970,7 @@ var Button = (_a) => {
|
|
|
3934
3970
|
"aria-busy": isLoading,
|
|
3935
3971
|
"aria-label": ariaLabel
|
|
3936
3972
|
}, other), {
|
|
3937
|
-
children: isLoading ? /* @__PURE__ */ (0,
|
|
3973
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
3938
3974
|
"span",
|
|
3939
3975
|
{
|
|
3940
3976
|
className: cn(
|
|
@@ -3945,9 +3981,9 @@ var Button = (_a) => {
|
|
|
3945
3981
|
),
|
|
3946
3982
|
"aria-hidden": "true"
|
|
3947
3983
|
}
|
|
3948
|
-
) : /* @__PURE__ */ (0,
|
|
3984
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
3949
3985
|
prefix != null ? prefix : null,
|
|
3950
|
-
/* @__PURE__ */ (0,
|
|
3986
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
3951
3987
|
"span",
|
|
3952
3988
|
{
|
|
3953
3989
|
className: cn("group/span-agg-button agg-button-label", "whitespace-nowrap truncate"),
|
|
@@ -3972,12 +4008,12 @@ var import_react3 = require("react");
|
|
|
3972
4008
|
|
|
3973
4009
|
// src/primitives/skeleton/skeleton-block.tsx
|
|
3974
4010
|
var import_hooks13 = require("@agg-build/hooks");
|
|
3975
|
-
var
|
|
4011
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
3976
4012
|
var SkeletonBlock = ({ className }) => {
|
|
3977
4013
|
const {
|
|
3978
4014
|
features: { enableAnimations }
|
|
3979
4015
|
} = (0, import_hooks13.useSdkUiConfig)();
|
|
3980
|
-
return /* @__PURE__ */ (0,
|
|
4016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
3981
4017
|
"div",
|
|
3982
4018
|
{
|
|
3983
4019
|
"aria-hidden": true,
|
|
@@ -4006,7 +4042,7 @@ var resolveRemoteImageStatusFromSrc = (src) => {
|
|
|
4006
4042
|
};
|
|
4007
4043
|
|
|
4008
4044
|
// src/primitives/remote-image/index.tsx
|
|
4009
|
-
var
|
|
4045
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
4010
4046
|
var RemoteImage = ({
|
|
4011
4047
|
src,
|
|
4012
4048
|
alt,
|
|
@@ -4040,7 +4076,7 @@ var RemoteImage = ({
|
|
|
4040
4076
|
setStatus("error");
|
|
4041
4077
|
};
|
|
4042
4078
|
const sizeStyle = width !== void 0 || height !== void 0 ? { width: width != null ? width : void 0, height: height != null ? height : void 0 } : void 0;
|
|
4043
|
-
return /* @__PURE__ */ (0,
|
|
4079
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
4044
4080
|
"div",
|
|
4045
4081
|
{
|
|
4046
4082
|
className: cn(containerClasses, classNames == null ? void 0 : classNames.root, className),
|
|
@@ -4057,14 +4093,14 @@ var RemoteImage = ({
|
|
|
4057
4093
|
"aria-label": ariaLabel,
|
|
4058
4094
|
title,
|
|
4059
4095
|
children: [
|
|
4060
|
-
status === "loading" && /* @__PURE__ */ (0,
|
|
4061
|
-
status === "error" && /* @__PURE__ */ (0,
|
|
4096
|
+
status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
|
|
4097
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4062
4098
|
"div",
|
|
4063
4099
|
{
|
|
4064
4100
|
className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
|
|
4065
4101
|
"aria-hidden": true,
|
|
4066
4102
|
"aria-errormessage": "Image failed to load",
|
|
4067
|
-
children: /* @__PURE__ */ (0,
|
|
4103
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4068
4104
|
Icon,
|
|
4069
4105
|
{
|
|
4070
4106
|
name: "image",
|
|
@@ -4075,7 +4111,7 @@ var RemoteImage = ({
|
|
|
4075
4111
|
)
|
|
4076
4112
|
}
|
|
4077
4113
|
),
|
|
4078
|
-
isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0,
|
|
4114
|
+
isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
4079
4115
|
"img",
|
|
4080
4116
|
{
|
|
4081
4117
|
src,
|
|
@@ -4111,7 +4147,7 @@ var resolveIsSelectDisabled = ({
|
|
|
4111
4147
|
};
|
|
4112
4148
|
|
|
4113
4149
|
// src/primitives/select/index.tsx
|
|
4114
|
-
var
|
|
4150
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
4115
4151
|
var SELECT_DROPDOWN_Z = 1e4;
|
|
4116
4152
|
function resolveSelectPortalContainer(triggerRoot) {
|
|
4117
4153
|
var _a, _b;
|
|
@@ -4184,7 +4220,7 @@ var Select = ({
|
|
|
4184
4220
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
4185
4221
|
}, [isOpen, handleClose]);
|
|
4186
4222
|
const triggerRadiusClass = triggerClassName != null ? triggerClassName : "rounded-agg-md";
|
|
4187
|
-
const listbox = menuRect ? /* @__PURE__ */ (0,
|
|
4223
|
+
const listbox = menuRect ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4188
4224
|
"div",
|
|
4189
4225
|
{
|
|
4190
4226
|
ref: portalRef,
|
|
@@ -4201,7 +4237,7 @@ var Select = ({
|
|
|
4201
4237
|
className: "agg-select-content pointer-events-auto max-h-[min(20rem,calc(100vh-4rem))] overflow-y-auto rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
|
|
4202
4238
|
children: items.map((item) => {
|
|
4203
4239
|
const isSelected = item.value === value;
|
|
4204
|
-
return /* @__PURE__ */ (0,
|
|
4240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
4205
4241
|
"button",
|
|
4206
4242
|
{
|
|
4207
4243
|
type: "button",
|
|
@@ -4223,8 +4259,8 @@ var Select = ({
|
|
|
4223
4259
|
handleClose();
|
|
4224
4260
|
},
|
|
4225
4261
|
children: [
|
|
4226
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
4227
|
-
item.icon ? /* @__PURE__ */ (0,
|
|
4262
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
|
|
4263
|
+
item.icon ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "h-4 w-4 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: item.icon }) : item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4228
4264
|
RemoteImage,
|
|
4229
4265
|
{
|
|
4230
4266
|
src: item.iconUrl,
|
|
@@ -4232,7 +4268,7 @@ var Select = ({
|
|
|
4232
4268
|
className: "agg-select-item-icon h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
4233
4269
|
}
|
|
4234
4270
|
) : null,
|
|
4235
|
-
/* @__PURE__ */ (0,
|
|
4271
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "agg-select-item-label truncate", children: item.label })
|
|
4236
4272
|
]
|
|
4237
4273
|
},
|
|
4238
4274
|
item.value
|
|
@@ -4240,13 +4276,13 @@ var Select = ({
|
|
|
4240
4276
|
})
|
|
4241
4277
|
}
|
|
4242
4278
|
) : null;
|
|
4243
|
-
return /* @__PURE__ */ (0,
|
|
4279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
4244
4280
|
"div",
|
|
4245
4281
|
{
|
|
4246
4282
|
ref: containerRef,
|
|
4247
4283
|
className: cn("group/agg-select", "relative inline-flex w-full", className),
|
|
4248
4284
|
children: [
|
|
4249
|
-
/* @__PURE__ */ (0,
|
|
4285
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
4250
4286
|
"button",
|
|
4251
4287
|
{
|
|
4252
4288
|
type: "button",
|
|
@@ -4268,7 +4304,7 @@ var Select = ({
|
|
|
4268
4304
|
),
|
|
4269
4305
|
onClick: () => setIsOpen((previousValue) => !previousValue),
|
|
4270
4306
|
children: [
|
|
4271
|
-
(selectedItem == null ? void 0 : selectedItem.icon) ? /* @__PURE__ */ (0,
|
|
4307
|
+
(selectedItem == null ? void 0 : selectedItem.icon) ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "h-4 w-4 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: selectedItem.icon }) : (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
4272
4308
|
RemoteImage,
|
|
4273
4309
|
{
|
|
4274
4310
|
src: selectedItem.iconUrl,
|
|
@@ -4276,11 +4312,11 @@ var Select = ({
|
|
|
4276
4312
|
className: "agg-select-icon h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
4277
4313
|
}
|
|
4278
4314
|
) : null,
|
|
4279
|
-
/* @__PURE__ */ (0,
|
|
4315
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "agg-select-value flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
|
|
4280
4316
|
]
|
|
4281
4317
|
}
|
|
4282
4318
|
),
|
|
4283
|
-
/* @__PURE__ */ (0,
|
|
4319
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "agg-select-chevron pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Icon, { name: "chevron-down-thin", size: "small", color: "currentColor" }) }),
|
|
4284
4320
|
isOpen && typeof document !== "undefined" && listbox ? (0, import_react_dom.createPortal)(listbox, resolveSelectPortalContainer(containerRef.current)) : null
|
|
4285
4321
|
]
|
|
4286
4322
|
}
|
|
@@ -4289,7 +4325,7 @@ var Select = ({
|
|
|
4289
4325
|
Select.displayName = "Select";
|
|
4290
4326
|
|
|
4291
4327
|
// src/deposit/steps/card-deposit.tsx
|
|
4292
|
-
var
|
|
4328
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
4293
4329
|
var CardDepositStep = ({
|
|
4294
4330
|
amount,
|
|
4295
4331
|
currency,
|
|
@@ -4315,33 +4351,33 @@ var CardDepositStep = ({
|
|
|
4315
4351
|
const isBelowMin = minAmount != null && hasInput && numericAmount < minAmount;
|
|
4316
4352
|
const isValid = numericAmount > 0 && !isBelowMin;
|
|
4317
4353
|
const formattedMin = minAmount != null ? `$${minAmount}` : void 0;
|
|
4318
|
-
return /* @__PURE__ */ (0,
|
|
4319
|
-
/* @__PURE__ */ (0,
|
|
4354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
4355
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4320
4356
|
Modal.Header,
|
|
4321
4357
|
{
|
|
4322
4358
|
title: labels.deposit.cardFlow.title,
|
|
4323
4359
|
hideBorder: true,
|
|
4324
|
-
leftElement: /* @__PURE__ */ (0,
|
|
4360
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4325
4361
|
"button",
|
|
4326
4362
|
{
|
|
4327
4363
|
type: "button",
|
|
4328
4364
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
4329
4365
|
onClick: onBack,
|
|
4330
4366
|
"aria-label": "Go back",
|
|
4331
|
-
children: /* @__PURE__ */ (0,
|
|
4367
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
4332
4368
|
}
|
|
4333
4369
|
)
|
|
4334
4370
|
}
|
|
4335
4371
|
),
|
|
4336
|
-
/* @__PURE__ */ (0,
|
|
4337
|
-
/* @__PURE__ */ (0,
|
|
4338
|
-
/* @__PURE__ */ (0,
|
|
4339
|
-
/* @__PURE__ */ (0,
|
|
4340
|
-
/* @__PURE__ */ (0,
|
|
4341
|
-
formattedMin ? /* @__PURE__ */ (0,
|
|
4372
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-5", children: [
|
|
4373
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4374
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex-1 flex flex-col gap-2", children: [
|
|
4375
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
4376
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.cardFlow.amountLabel }),
|
|
4377
|
+
formattedMin ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "agg-type-label text-agg-foreground", children: labels.deposit.cardFlow.minRequired(formattedMin) }) : null
|
|
4342
4378
|
] }),
|
|
4343
|
-
/* @__PURE__ */ (0,
|
|
4344
|
-
/* @__PURE__ */ (0,
|
|
4379
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex gap-3 items-center", children: [
|
|
4380
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
4345
4381
|
"div",
|
|
4346
4382
|
{
|
|
4347
4383
|
className: cn(
|
|
@@ -4349,7 +4385,7 @@ var CardDepositStep = ({
|
|
|
4349
4385
|
isBelowMin ? "border-agg-primary border-2" : "border-agg-separator"
|
|
4350
4386
|
),
|
|
4351
4387
|
children: [
|
|
4352
|
-
/* @__PURE__ */ (0,
|
|
4388
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4353
4389
|
"input",
|
|
4354
4390
|
{
|
|
4355
4391
|
type: "text",
|
|
@@ -4365,11 +4401,11 @@ var CardDepositStep = ({
|
|
|
4365
4401
|
}
|
|
4366
4402
|
}
|
|
4367
4403
|
),
|
|
4368
|
-
/* @__PURE__ */ (0,
|
|
4404
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "agg-type-body text-agg-muted-foreground", children: "$" })
|
|
4369
4405
|
]
|
|
4370
4406
|
}
|
|
4371
4407
|
),
|
|
4372
|
-
/* @__PURE__ */ (0,
|
|
4408
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "w-[100px]", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4373
4409
|
Select,
|
|
4374
4410
|
{
|
|
4375
4411
|
items: [{ value: currency, label: currency }],
|
|
@@ -4381,8 +4417,8 @@ var CardDepositStep = ({
|
|
|
4381
4417
|
) })
|
|
4382
4418
|
] })
|
|
4383
4419
|
] }),
|
|
4384
|
-
isBelowMin && formattedMin ? /* @__PURE__ */ (0,
|
|
4385
|
-
/* @__PURE__ */ (0,
|
|
4420
|
+
isBelowMin && formattedMin ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex items-center gap-2", role: "alert", "aria-live": "assertive", children: [
|
|
4421
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4386
4422
|
Icon,
|
|
4387
4423
|
{
|
|
4388
4424
|
name: "warning",
|
|
@@ -4390,12 +4426,12 @@ var CardDepositStep = ({
|
|
|
4390
4426
|
"aria-hidden": "true"
|
|
4391
4427
|
}
|
|
4392
4428
|
),
|
|
4393
|
-
/* @__PURE__ */ (0,
|
|
4429
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "agg-type-label text-agg-error", children: labels.deposit.cardFlow.minAmountError(formattedMin) })
|
|
4394
4430
|
] }) : null
|
|
4395
4431
|
] }),
|
|
4396
|
-
/* @__PURE__ */ (0,
|
|
4397
|
-
/* @__PURE__ */ (0,
|
|
4398
|
-
/* @__PURE__ */ (0,
|
|
4432
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
4433
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.cardFlow.networkLabel }),
|
|
4434
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4399
4435
|
Select,
|
|
4400
4436
|
{
|
|
4401
4437
|
items: networkOptions,
|
|
@@ -4406,7 +4442,7 @@ var CardDepositStep = ({
|
|
|
4406
4442
|
}
|
|
4407
4443
|
)
|
|
4408
4444
|
] }),
|
|
4409
|
-
/* @__PURE__ */ (0,
|
|
4445
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
4410
4446
|
Button,
|
|
4411
4447
|
{
|
|
4412
4448
|
variant: "secondary",
|
|
@@ -4426,7 +4462,7 @@ var import_hooks17 = require("@agg-build/hooks");
|
|
|
4426
4462
|
|
|
4427
4463
|
// src/primitives/copy-button/index.tsx
|
|
4428
4464
|
var import_react6 = require("react");
|
|
4429
|
-
var
|
|
4465
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
4430
4466
|
var CopyButton = ({
|
|
4431
4467
|
value,
|
|
4432
4468
|
label,
|
|
@@ -4458,7 +4494,7 @@ var CopyButton = ({
|
|
|
4458
4494
|
}, [onCopy, resetMs, value]);
|
|
4459
4495
|
const showLabel = label !== void 0 || copiedLabel !== void 0;
|
|
4460
4496
|
const visibleLabel = isCopied ? copiedLabel != null ? copiedLabel : label : label;
|
|
4461
|
-
return /* @__PURE__ */ (0,
|
|
4497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
4462
4498
|
"button",
|
|
4463
4499
|
{
|
|
4464
4500
|
type: "button",
|
|
@@ -4471,8 +4507,8 @@ var CopyButton = ({
|
|
|
4471
4507
|
className
|
|
4472
4508
|
),
|
|
4473
4509
|
children: [
|
|
4474
|
-
isCopied ? /* @__PURE__ */ (0,
|
|
4475
|
-
showLabel ? /* @__PURE__ */ (0,
|
|
4510
|
+
isCopied ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(CheckCircleIcon, { className: iconClassName }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(CopyIcon, { className: iconClassName }),
|
|
4511
|
+
showLabel ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "agg-type-label-strong", children: visibleLabel }) : null
|
|
4476
4512
|
]
|
|
4477
4513
|
}
|
|
4478
4514
|
);
|
|
@@ -4481,21 +4517,21 @@ CopyButton.displayName = "CopyButton";
|
|
|
4481
4517
|
|
|
4482
4518
|
// src/deposit/components/DepositQRCode.tsx
|
|
4483
4519
|
var import_qrcode = require("qrcode.react");
|
|
4484
|
-
var
|
|
4520
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
4485
4521
|
function DepositQRCode({
|
|
4486
4522
|
depositAddress,
|
|
4487
4523
|
networkLogoUrl,
|
|
4488
4524
|
networkLogo,
|
|
4489
4525
|
size = 160
|
|
4490
4526
|
}) {
|
|
4491
|
-
const logoOverlay = networkLogo ? /* @__PURE__ */ (0,
|
|
4527
|
+
const logoOverlay = networkLogo ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
4492
4528
|
"div",
|
|
4493
4529
|
{
|
|
4494
4530
|
className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-sm",
|
|
4495
4531
|
style: { width: 32, height: 32, backgroundColor: "#FFFFFF", padding: 2 },
|
|
4496
4532
|
children: networkLogo
|
|
4497
4533
|
}
|
|
4498
|
-
) : networkLogoUrl ? /* @__PURE__ */ (0,
|
|
4534
|
+
) : networkLogoUrl ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
4499
4535
|
"img",
|
|
4500
4536
|
{
|
|
4501
4537
|
src: networkLogoUrl,
|
|
@@ -4506,7 +4542,7 @@ function DepositQRCode({
|
|
|
4506
4542
|
style: { backgroundColor: "#FFFFFF", padding: 2 }
|
|
4507
4543
|
}
|
|
4508
4544
|
) : null;
|
|
4509
|
-
return /* @__PURE__ */ (0,
|
|
4545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
4510
4546
|
"div",
|
|
4511
4547
|
{
|
|
4512
4548
|
className: "inline-flex items-center justify-center rounded-xl border",
|
|
@@ -4515,8 +4551,8 @@ function DepositQRCode({
|
|
|
4515
4551
|
borderColor: "#E5E7EB",
|
|
4516
4552
|
backgroundColor: "#FFFFFF"
|
|
4517
4553
|
},
|
|
4518
|
-
children: /* @__PURE__ */ (0,
|
|
4519
|
-
/* @__PURE__ */ (0,
|
|
4554
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
|
|
4555
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_qrcode.QRCodeSVG, { value: depositAddress, size, level: "H" }),
|
|
4520
4556
|
logoOverlay
|
|
4521
4557
|
] })
|
|
4522
4558
|
}
|
|
@@ -4525,27 +4561,27 @@ function DepositQRCode({
|
|
|
4525
4561
|
DepositQRCode.displayName = "DepositQRCode";
|
|
4526
4562
|
|
|
4527
4563
|
// src/deposit/steps/crypto-transfer.tsx
|
|
4528
|
-
var
|
|
4564
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
4529
4565
|
var CryptoAddressLoadingState = () => {
|
|
4530
4566
|
const labels = (0, import_hooks17.useLabels)();
|
|
4531
4567
|
const sendCryptoLabels = labels.deposit.sendCrypto;
|
|
4532
|
-
return /* @__PURE__ */ (0,
|
|
4568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
4533
4569
|
"div",
|
|
4534
4570
|
{
|
|
4535
4571
|
className: "flex w-full flex-col items-center justify-center gap-6 py-10 text-center text-agg-foreground",
|
|
4536
4572
|
role: "status",
|
|
4537
4573
|
"aria-live": "polite",
|
|
4538
4574
|
children: [
|
|
4539
|
-
/* @__PURE__ */ (0,
|
|
4575
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4540
4576
|
"span",
|
|
4541
4577
|
{
|
|
4542
4578
|
className: "h-9 w-9 animate-spin rounded-full border-2 border-agg-primary/25 border-t-agg-primary",
|
|
4543
4579
|
"aria-hidden": "true"
|
|
4544
4580
|
}
|
|
4545
4581
|
),
|
|
4546
|
-
/* @__PURE__ */ (0,
|
|
4547
|
-
/* @__PURE__ */ (0,
|
|
4548
|
-
/* @__PURE__ */ (0,
|
|
4582
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex w-full flex-col items-center gap-2", children: [
|
|
4583
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6", children: sendCryptoLabels.addressLoadingTitle }),
|
|
4584
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "max-w-[300px] text-agg-sm leading-agg-5", children: sendCryptoLabels.addressLoadingDescription })
|
|
4549
4585
|
] })
|
|
4550
4586
|
]
|
|
4551
4587
|
}
|
|
@@ -4573,29 +4609,29 @@ var CryptoTransferStep = ({
|
|
|
4573
4609
|
const selectedNetworkOption = networkOptions.find((n) => n.value === selectedNetwork);
|
|
4574
4610
|
const networkLogoUrl = (_a = selectedNetworkOption == null ? void 0 : selectedNetworkOption.iconUrl) != null ? _a : "";
|
|
4575
4611
|
const networkLogo = selectedNetworkOption == null ? void 0 : selectedNetworkOption.icon;
|
|
4576
|
-
return /* @__PURE__ */ (0,
|
|
4577
|
-
/* @__PURE__ */ (0,
|
|
4612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
|
|
4613
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4578
4614
|
Modal.Header,
|
|
4579
4615
|
{
|
|
4580
4616
|
title: labels.deposit.sendCrypto.title,
|
|
4581
4617
|
hideBorder: true,
|
|
4582
|
-
leftElement: /* @__PURE__ */ (0,
|
|
4618
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4583
4619
|
"button",
|
|
4584
4620
|
{
|
|
4585
4621
|
type: "button",
|
|
4586
4622
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
4587
4623
|
onClick: onBack,
|
|
4588
4624
|
"aria-label": "Go back",
|
|
4589
|
-
children: /* @__PURE__ */ (0,
|
|
4625
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
4590
4626
|
}
|
|
4591
4627
|
)
|
|
4592
4628
|
}
|
|
4593
4629
|
),
|
|
4594
|
-
/* @__PURE__ */ (0,
|
|
4595
|
-
/* @__PURE__ */ (0,
|
|
4596
|
-
/* @__PURE__ */ (0,
|
|
4597
|
-
/* @__PURE__ */ (0,
|
|
4598
|
-
/* @__PURE__ */ (0,
|
|
4630
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-7", children: [
|
|
4631
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex flex-col gap-5", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex gap-5", children: [
|
|
4632
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
4633
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.tokenLabel }),
|
|
4634
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4599
4635
|
Select,
|
|
4600
4636
|
{
|
|
4601
4637
|
items: tokenOptions,
|
|
@@ -4605,9 +4641,9 @@ var CryptoTransferStep = ({
|
|
|
4605
4641
|
}
|
|
4606
4642
|
)
|
|
4607
4643
|
] }),
|
|
4608
|
-
/* @__PURE__ */ (0,
|
|
4609
|
-
/* @__PURE__ */ (0,
|
|
4610
|
-
/* @__PURE__ */ (0,
|
|
4644
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
4645
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.networkLabel }),
|
|
4646
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4611
4647
|
Select,
|
|
4612
4648
|
{
|
|
4613
4649
|
items: networkOptions,
|
|
@@ -4618,7 +4654,7 @@ var CryptoTransferStep = ({
|
|
|
4618
4654
|
)
|
|
4619
4655
|
] })
|
|
4620
4656
|
] }) }),
|
|
4621
|
-
/* @__PURE__ */ (0,
|
|
4657
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "mx-auto", children: isLoadingAddress ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CryptoAddressLoadingState, {}) : addressError ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex h-[192px] w-[192px] items-center justify-center rounded-xl border border-agg-separator bg-agg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-label text-center text-agg-error px-3", children: addressError }) }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4622
4658
|
DepositQRCode,
|
|
4623
4659
|
{
|
|
4624
4660
|
depositAddress,
|
|
@@ -4626,11 +4662,11 @@ var CryptoTransferStep = ({
|
|
|
4626
4662
|
networkLogo
|
|
4627
4663
|
}
|
|
4628
4664
|
) }),
|
|
4629
|
-
/* @__PURE__ */ (0,
|
|
4630
|
-
/* @__PURE__ */ (0,
|
|
4631
|
-
/* @__PURE__ */ (0,
|
|
4632
|
-
isLoadingAddress ? /* @__PURE__ */ (0,
|
|
4633
|
-
/* @__PURE__ */ (0,
|
|
4665
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4666
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.depositAddressLabel }),
|
|
4667
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-2 rounded border border-agg-separator bg-agg-secondary h-10 px-3", children: [
|
|
4668
|
+
isLoadingAddress ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "h-4 flex-1 animate-pulse rounded bg-agg-muted-foreground/20" }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: depositAddress }),
|
|
4669
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4634
4670
|
CopyButton,
|
|
4635
4671
|
{
|
|
4636
4672
|
value: depositAddress,
|
|
@@ -4642,13 +4678,13 @@ var CryptoTransferStep = ({
|
|
|
4642
4678
|
}
|
|
4643
4679
|
)
|
|
4644
4680
|
] }),
|
|
4645
|
-
/* @__PURE__ */ (0,
|
|
4681
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-label text-agg-foreground", children: `${labels.deposit.sendCrypto.minDepositPrefix} ${minDeposit} \xB7 ${labels.deposit.walletFlow.feePrefix} ${feeEstimate} \xB7 ${eta}` })
|
|
4646
4682
|
] }),
|
|
4647
|
-
/* @__PURE__ */ (0,
|
|
4648
|
-
/* @__PURE__ */ (0,
|
|
4649
|
-
/* @__PURE__ */ (0,
|
|
4683
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-start gap-3 rounded-lg bg-agg-secondary-hover p-3", children: [
|
|
4684
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(WarningIcon, { className: "h-4 w-4 text-agg-muted-foreground mt-0.5" }),
|
|
4685
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-agg-xs leading-agg-4 text-agg-foreground", children: labels.deposit.sendCrypto.warning })
|
|
4650
4686
|
] }),
|
|
4651
|
-
/* @__PURE__ */ (0,
|
|
4687
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
4652
4688
|
Button,
|
|
4653
4689
|
{
|
|
4654
4690
|
variant: "secondary",
|
|
@@ -4664,7 +4700,7 @@ var CryptoTransferStep = ({
|
|
|
4664
4700
|
|
|
4665
4701
|
// src/deposit/steps/wallet-form.tsx
|
|
4666
4702
|
var import_hooks18 = require("@agg-build/hooks");
|
|
4667
|
-
var
|
|
4703
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
4668
4704
|
var WalletFormStep = ({
|
|
4669
4705
|
walletLabel,
|
|
4670
4706
|
walletBalance,
|
|
@@ -4689,38 +4725,38 @@ var WalletFormStep = ({
|
|
|
4689
4725
|
}) => {
|
|
4690
4726
|
const labels = (0, import_hooks18.useLabels)();
|
|
4691
4727
|
const isConfirmEnabled = !isSubmitting && !isBalanceLoading && Number(amount) > 0 && Number(amount) <= walletBalance;
|
|
4692
|
-
return /* @__PURE__ */ (0,
|
|
4693
|
-
/* @__PURE__ */ (0,
|
|
4728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
|
|
4729
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4694
4730
|
Modal.Header,
|
|
4695
4731
|
{
|
|
4696
4732
|
title: labels.deposit.walletFlow.title,
|
|
4697
4733
|
hideBorder: true,
|
|
4698
|
-
leftElement: /* @__PURE__ */ (0,
|
|
4734
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4699
4735
|
"button",
|
|
4700
4736
|
{
|
|
4701
4737
|
type: "button",
|
|
4702
4738
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
4703
4739
|
onClick: onBack,
|
|
4704
4740
|
"aria-label": "Go back",
|
|
4705
|
-
children: /* @__PURE__ */ (0,
|
|
4741
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
4706
4742
|
}
|
|
4707
4743
|
)
|
|
4708
4744
|
}
|
|
4709
4745
|
),
|
|
4710
|
-
/* @__PURE__ */ (0,
|
|
4711
|
-
/* @__PURE__ */ (0,
|
|
4712
|
-
/* @__PURE__ */ (0,
|
|
4713
|
-
/* @__PURE__ */ (0,
|
|
4746
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-7", children: [
|
|
4747
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
4748
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "agg-type-label text-agg-foreground", children: walletLabel }),
|
|
4749
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
4714
4750
|
labels.deposit.balanceLabel,
|
|
4715
4751
|
" ",
|
|
4716
|
-
isBalanceLoading ? /* @__PURE__ */ (0,
|
|
4752
|
+
isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(LoadingIcon, { size: "small" }) : formatCompactUsd(walletBalance)
|
|
4717
4753
|
] })
|
|
4718
4754
|
] }),
|
|
4719
|
-
/* @__PURE__ */ (0,
|
|
4720
|
-
/* @__PURE__ */ (0,
|
|
4721
|
-
/* @__PURE__ */ (0,
|
|
4722
|
-
/* @__PURE__ */ (0,
|
|
4723
|
-
/* @__PURE__ */ (0,
|
|
4755
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-5", children: [
|
|
4756
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex gap-5", children: [
|
|
4757
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
4758
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.tokenLabel }),
|
|
4759
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4724
4760
|
Select,
|
|
4725
4761
|
{
|
|
4726
4762
|
items: tokenOptions,
|
|
@@ -4730,9 +4766,9 @@ var WalletFormStep = ({
|
|
|
4730
4766
|
}
|
|
4731
4767
|
)
|
|
4732
4768
|
] }),
|
|
4733
|
-
networkOptions.length > 1 ? /* @__PURE__ */ (0,
|
|
4734
|
-
/* @__PURE__ */ (0,
|
|
4735
|
-
/* @__PURE__ */ (0,
|
|
4769
|
+
networkOptions.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
4770
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.networkLabel }),
|
|
4771
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4736
4772
|
Select,
|
|
4737
4773
|
{
|
|
4738
4774
|
items: networkOptions,
|
|
@@ -4743,9 +4779,9 @@ var WalletFormStep = ({
|
|
|
4743
4779
|
)
|
|
4744
4780
|
] }) : null
|
|
4745
4781
|
] }),
|
|
4746
|
-
/* @__PURE__ */ (0,
|
|
4747
|
-
/* @__PURE__ */ (0,
|
|
4748
|
-
/* @__PURE__ */ (0,
|
|
4782
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
4783
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.amountLabel }),
|
|
4784
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
4749
4785
|
"div",
|
|
4750
4786
|
{
|
|
4751
4787
|
className: cn(
|
|
@@ -4754,7 +4790,7 @@ var WalletFormStep = ({
|
|
|
4754
4790
|
"h-10 px-3"
|
|
4755
4791
|
),
|
|
4756
4792
|
children: [
|
|
4757
|
-
/* @__PURE__ */ (0,
|
|
4793
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4758
4794
|
"input",
|
|
4759
4795
|
{
|
|
4760
4796
|
type: "text",
|
|
@@ -4766,7 +4802,7 @@ var WalletFormStep = ({
|
|
|
4766
4802
|
onChange: (event) => onAmountChange(event.target.value)
|
|
4767
4803
|
}
|
|
4768
4804
|
),
|
|
4769
|
-
/* @__PURE__ */ (0,
|
|
4805
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4770
4806
|
"button",
|
|
4771
4807
|
{
|
|
4772
4808
|
type: "button",
|
|
@@ -4780,8 +4816,8 @@ var WalletFormStep = ({
|
|
|
4780
4816
|
}
|
|
4781
4817
|
)
|
|
4782
4818
|
] }),
|
|
4783
|
-
estimatedReceive && feeEstimate && eta ? /* @__PURE__ */ (0,
|
|
4784
|
-
formErrorMessage ? /* @__PURE__ */ (0,
|
|
4819
|
+
estimatedReceive && feeEstimate && eta ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "agg-type-label text-agg-foreground", children: `\u2248 ${estimatedReceive} \xB7 ${labels.deposit.walletFlow.feePrefix} ${feeEstimate} \xB7 ${eta}` }) : null,
|
|
4820
|
+
formErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
4785
4821
|
"div",
|
|
4786
4822
|
{
|
|
4787
4823
|
className: cn(
|
|
@@ -4789,13 +4825,13 @@ var WalletFormStep = ({
|
|
|
4789
4825
|
formErrorTone === "warning" ? "text-agg-warning" : "text-agg-error"
|
|
4790
4826
|
),
|
|
4791
4827
|
children: [
|
|
4792
|
-
/* @__PURE__ */ (0,
|
|
4793
|
-
/* @__PURE__ */ (0,
|
|
4828
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(WarningIcon, { className: "mt-0.5 h-4 w-4 shrink-0" }),
|
|
4829
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "agg-type-label", children: formErrorMessage })
|
|
4794
4830
|
]
|
|
4795
4831
|
}
|
|
4796
4832
|
) : null
|
|
4797
4833
|
] }),
|
|
4798
|
-
/* @__PURE__ */ (0,
|
|
4834
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
4799
4835
|
Button,
|
|
4800
4836
|
{
|
|
4801
4837
|
variant: isConfirmEnabled ? "primary" : "secondary",
|
|
@@ -4814,20 +4850,20 @@ var WalletFormStep = ({
|
|
|
4814
4850
|
|
|
4815
4851
|
// src/deposit/steps/card-provider.tsx
|
|
4816
4852
|
var import_hooks19 = require("@agg-build/hooks");
|
|
4817
|
-
var
|
|
4853
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
4818
4854
|
var CardProviderItem = ({ provider, onSelect }) => {
|
|
4819
4855
|
const labels = (0, import_hooks19.useLabels)();
|
|
4820
4856
|
const badgeText = provider.badge === "best" ? labels.deposit.cardFlow.providerBadges.best : provider.badge === "low-kyc" ? labels.deposit.cardFlow.providerBadges.lowKyc : void 0;
|
|
4821
|
-
return /* @__PURE__ */ (0,
|
|
4857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
4822
4858
|
"button",
|
|
4823
4859
|
{
|
|
4824
4860
|
type: "button",
|
|
4825
4861
|
className: "w-full rounded-xl border border-agg-separator px-4 py-3 text-left bg-agg-secondary hover:bg-agg-secondary-hover transition-colors cursor-pointer",
|
|
4826
4862
|
onClick: () => onSelect(provider.id),
|
|
4827
|
-
children: /* @__PURE__ */ (0,
|
|
4828
|
-
/* @__PURE__ */ (0,
|
|
4829
|
-
/* @__PURE__ */ (0,
|
|
4830
|
-
badgeText ? /* @__PURE__ */ (0,
|
|
4863
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
|
|
4864
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4865
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: provider.name }),
|
|
4866
|
+
badgeText ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
4831
4867
|
"span",
|
|
4832
4868
|
{
|
|
4833
4869
|
className: `rounded border px-2 py-[2px] text-[10px] leading-[14px] font-agg-bold uppercase ${provider.badge === "best" ? "border-agg-primary/50 text-agg-primary bg-agg-secondary" : "border-agg-separator text-agg-foreground bg-agg-secondary"}`,
|
|
@@ -4835,16 +4871,16 @@ var CardProviderItem = ({ provider, onSelect }) => {
|
|
|
4835
4871
|
}
|
|
4836
4872
|
) : null
|
|
4837
4873
|
] }),
|
|
4838
|
-
/* @__PURE__ */ (0,
|
|
4839
|
-
/* @__PURE__ */ (0,
|
|
4840
|
-
/* @__PURE__ */ (0,
|
|
4841
|
-
/* @__PURE__ */ (0,
|
|
4874
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
4875
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "text-right", children: [
|
|
4876
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-foreground", children: provider.quote }),
|
|
4877
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
4842
4878
|
labels.deposit.cardFlow.feeLabel,
|
|
4843
4879
|
" ",
|
|
4844
4880
|
provider.fee
|
|
4845
4881
|
] })
|
|
4846
4882
|
] }),
|
|
4847
|
-
/* @__PURE__ */ (0,
|
|
4883
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ChevronRightIcon, { className: "h-5 w-5 text-agg-muted-foreground" })
|
|
4848
4884
|
] })
|
|
4849
4885
|
] })
|
|
4850
4886
|
}
|
|
@@ -4863,40 +4899,40 @@ var CardProviderStep = ({
|
|
|
4863
4899
|
onRetry
|
|
4864
4900
|
}) => {
|
|
4865
4901
|
const labels = (0, import_hooks19.useLabels)();
|
|
4866
|
-
return /* @__PURE__ */ (0,
|
|
4867
|
-
/* @__PURE__ */ (0,
|
|
4902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
|
|
4903
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
4868
4904
|
Modal.Header,
|
|
4869
4905
|
{
|
|
4870
4906
|
title: labels.deposit.cardFlow.selectProviderTitle,
|
|
4871
4907
|
hideBorder: true,
|
|
4872
|
-
leftElement: /* @__PURE__ */ (0,
|
|
4908
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
4873
4909
|
"button",
|
|
4874
4910
|
{
|
|
4875
4911
|
type: "button",
|
|
4876
4912
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
4877
4913
|
onClick: onBack,
|
|
4878
4914
|
"aria-label": labels.deposit.back,
|
|
4879
|
-
children: /* @__PURE__ */ (0,
|
|
4915
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
4880
4916
|
}
|
|
4881
4917
|
)
|
|
4882
4918
|
}
|
|
4883
4919
|
),
|
|
4884
|
-
/* @__PURE__ */ (0,
|
|
4885
|
-
/* @__PURE__ */ (0,
|
|
4886
|
-
/* @__PURE__ */ (0,
|
|
4887
|
-
/* @__PURE__ */ (0,
|
|
4888
|
-
/* @__PURE__ */ (0,
|
|
4920
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
4921
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-1.5", children: [
|
|
4922
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(UsdcIcon, { className: "h-4 w-4 shrink-0" }),
|
|
4923
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "agg-type-body font-agg-bold text-agg-foreground", children: token }),
|
|
4924
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("span", { className: "agg-type-body text-agg-foreground", children: [
|
|
4889
4925
|
"$",
|
|
4890
4926
|
amount,
|
|
4891
4927
|
" ",
|
|
4892
4928
|
currency
|
|
4893
4929
|
] })
|
|
4894
4930
|
] }),
|
|
4895
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
4896
|
-
/* @__PURE__ */ (0,
|
|
4897
|
-
/* @__PURE__ */ (0,
|
|
4898
|
-
] }) : error ? /* @__PURE__ */ (0,
|
|
4899
|
-
/* @__PURE__ */ (0,
|
|
4931
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex min-h-[200px] flex-col items-center justify-center gap-3", children: [
|
|
4932
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(LoadingIcon, { variant: "prominent" }),
|
|
4933
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.loadingQuotes })
|
|
4934
|
+
] }) : error ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex min-h-[200px] flex-col items-center justify-center gap-6 px-2 text-center", children: [
|
|
4935
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
4900
4936
|
Icon,
|
|
4901
4937
|
{
|
|
4902
4938
|
name: "quotes-warning",
|
|
@@ -4905,13 +4941,13 @@ var CardProviderStep = ({
|
|
|
4905
4941
|
color: "currentColor"
|
|
4906
4942
|
}
|
|
4907
4943
|
),
|
|
4908
|
-
/* @__PURE__ */ (0,
|
|
4909
|
-
/* @__PURE__ */ (0,
|
|
4910
|
-
/* @__PURE__ */ (0,
|
|
4944
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex max-w-[320px] flex-col gap-2", children: [
|
|
4945
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.errorLoadingQuotesTitle }),
|
|
4946
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-muted-foreground", children: labels.deposit.cardFlow.errorLoadingQuotesDescription })
|
|
4911
4947
|
] }),
|
|
4912
|
-
onRetry ? /* @__PURE__ */ (0,
|
|
4913
|
-
] }) : providers.length === 0 ? /* @__PURE__ */ (0,
|
|
4914
|
-
providers.map((provider) => /* @__PURE__ */ (0,
|
|
4948
|
+
onRetry ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { variant: "secondary", size: "medium", onClick: onRetry, children: labels.deposit.cardFlow.retry }) : null
|
|
4949
|
+
] }) : providers.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex min-h-[200px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-muted-foreground", children: labels.deposit.cardFlow.noQuotes }) }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
4950
|
+
providers.map((provider) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
4915
4951
|
CardProviderItem,
|
|
4916
4952
|
{
|
|
4917
4953
|
provider,
|
|
@@ -4919,7 +4955,7 @@ var CardProviderStep = ({
|
|
|
4919
4955
|
},
|
|
4920
4956
|
provider.id
|
|
4921
4957
|
)),
|
|
4922
|
-
sessionError ? /* @__PURE__ */ (0,
|
|
4958
|
+
sessionError ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-label text-agg-error text-center", children: sessionError }) : null
|
|
4923
4959
|
] })
|
|
4924
4960
|
] }) })
|
|
4925
4961
|
] });
|
|
@@ -4927,7 +4963,7 @@ var CardProviderStep = ({
|
|
|
4927
4963
|
|
|
4928
4964
|
// src/deposit/steps/card-payment-pending.tsx
|
|
4929
4965
|
var import_hooks20 = require("@agg-build/hooks");
|
|
4930
|
-
var
|
|
4966
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
4931
4967
|
var CardPaymentPendingStep = ({
|
|
4932
4968
|
providerName,
|
|
4933
4969
|
walletAddress,
|
|
@@ -4936,28 +4972,28 @@ var CardPaymentPendingStep = ({
|
|
|
4936
4972
|
onChooseAnotherProvider
|
|
4937
4973
|
}) => {
|
|
4938
4974
|
const labels = (0, import_hooks20.useLabels)();
|
|
4939
|
-
return /* @__PURE__ */ (0,
|
|
4940
|
-
/* @__PURE__ */ (0,
|
|
4975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
|
|
4976
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
4941
4977
|
"button",
|
|
4942
4978
|
{
|
|
4943
4979
|
type: "button",
|
|
4944
4980
|
className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors cursor-pointer hover:text-agg-foreground/80",
|
|
4945
4981
|
onClick: onClose,
|
|
4946
4982
|
"aria-label": labels.common.close,
|
|
4947
|
-
children: /* @__PURE__ */ (0,
|
|
4983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CloseIcon, { className: "h-6 w-6" })
|
|
4948
4984
|
}
|
|
4949
4985
|
),
|
|
4950
|
-
/* @__PURE__ */ (0,
|
|
4951
|
-
/* @__PURE__ */ (0,
|
|
4952
|
-
/* @__PURE__ */ (0,
|
|
4953
|
-
/* @__PURE__ */ (0,
|
|
4954
|
-
/* @__PURE__ */ (0,
|
|
4986
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
|
|
4987
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(ExternalLinkIcon, { className: "h-[60px] w-[60px]" }) }),
|
|
4988
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
4989
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.pendingTitle(providerName) }),
|
|
4990
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.pendingDescription })
|
|
4955
4991
|
] }),
|
|
4956
|
-
walletAddress ? /* @__PURE__ */ (0,
|
|
4957
|
-
/* @__PURE__ */ (0,
|
|
4958
|
-
/* @__PURE__ */ (0,
|
|
4959
|
-
/* @__PURE__ */ (0,
|
|
4960
|
-
/* @__PURE__ */ (0,
|
|
4992
|
+
walletAddress ? /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex w-full flex-col items-center gap-3 rounded-agg-md bg-agg-secondary-hover p-5", children: [
|
|
4993
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "agg-type-label text-agg-foreground w-full", children: labels.deposit.cardFlow.pendingWalletAddressHelp }),
|
|
4994
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex w-full h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 py-[10px]", children: [
|
|
4995
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: walletAddress }),
|
|
4996
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
4961
4997
|
CopyButton,
|
|
4962
4998
|
{
|
|
4963
4999
|
value: walletAddress,
|
|
@@ -4967,11 +5003,11 @@ var CardPaymentPendingStep = ({
|
|
|
4967
5003
|
)
|
|
4968
5004
|
] })
|
|
4969
5005
|
] }) : null,
|
|
4970
|
-
/* @__PURE__ */ (0,
|
|
4971
|
-
/* @__PURE__ */ (0,
|
|
4972
|
-
/* @__PURE__ */ (0,
|
|
5006
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex items-start justify-center gap-3", children: [
|
|
5007
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onClose, children: labels.common.close }),
|
|
5008
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { variant: "primary", size: "large", onClick: onViewActivity, children: labels.deposit.cardFlow.viewActivity })
|
|
4973
5009
|
] }),
|
|
4974
|
-
/* @__PURE__ */ (0,
|
|
5010
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
4975
5011
|
"button",
|
|
4976
5012
|
{
|
|
4977
5013
|
type: "button",
|
|
@@ -4986,10 +5022,10 @@ var CardPaymentPendingStep = ({
|
|
|
4986
5022
|
|
|
4987
5023
|
// src/deposit/steps/card-purchase-success.tsx
|
|
4988
5024
|
var import_hooks21 = require("@agg-build/hooks");
|
|
4989
|
-
var
|
|
4990
|
-
var SummaryRow = ({ label, value }) => /* @__PURE__ */ (0,
|
|
4991
|
-
/* @__PURE__ */ (0,
|
|
4992
|
-
/* @__PURE__ */ (0,
|
|
5025
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
5026
|
+
var SummaryRow = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex items-center justify-between border-b border-agg-separator py-2 last:border-b-0", children: [
|
|
5027
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
|
|
5028
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "agg-type-label text-agg-foreground", children: value })
|
|
4993
5029
|
] });
|
|
4994
5030
|
var CardPurchaseSuccessStep = ({
|
|
4995
5031
|
summary,
|
|
@@ -4997,35 +5033,35 @@ var CardPurchaseSuccessStep = ({
|
|
|
4997
5033
|
onClose
|
|
4998
5034
|
}) => {
|
|
4999
5035
|
const labels = (0, import_hooks21.useLabels)();
|
|
5000
|
-
return /* @__PURE__ */ (0,
|
|
5001
|
-
/* @__PURE__ */ (0,
|
|
5036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
|
|
5037
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
5002
5038
|
"button",
|
|
5003
5039
|
{
|
|
5004
5040
|
type: "button",
|
|
5005
5041
|
className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
|
|
5006
5042
|
onClick: onClose,
|
|
5007
5043
|
"aria-label": labels.common.close,
|
|
5008
|
-
children: /* @__PURE__ */ (0,
|
|
5044
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(CloseIcon, { className: "h-6 w-6" })
|
|
5009
5045
|
}
|
|
5010
5046
|
),
|
|
5011
|
-
/* @__PURE__ */ (0,
|
|
5012
|
-
/* @__PURE__ */ (0,
|
|
5013
|
-
/* @__PURE__ */ (0,
|
|
5014
|
-
/* @__PURE__ */ (0,
|
|
5015
|
-
/* @__PURE__ */ (0,
|
|
5047
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
|
|
5048
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
|
|
5049
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
5050
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.successTitle }),
|
|
5051
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.successDescription })
|
|
5016
5052
|
] }),
|
|
5017
|
-
/* @__PURE__ */ (0,
|
|
5018
|
-
/* @__PURE__ */ (0,
|
|
5053
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "w-full rounded-lg border border-agg-separator bg-agg-secondary px-3 py-1", children: [
|
|
5054
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
5019
5055
|
SummaryRow,
|
|
5020
5056
|
{
|
|
5021
5057
|
label: labels.deposit.summary.amountReceived,
|
|
5022
5058
|
value: summary.amountReceived
|
|
5023
5059
|
}
|
|
5024
5060
|
),
|
|
5025
|
-
/* @__PURE__ */ (0,
|
|
5026
|
-
/* @__PURE__ */ (0,
|
|
5061
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(SummaryRow, { label: labels.deposit.summary.network, value: summary.network }),
|
|
5062
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(SummaryRow, { label: labels.deposit.cardFlow.summary.fees, value: summary.fees })
|
|
5027
5063
|
] }),
|
|
5028
|
-
/* @__PURE__ */ (0,
|
|
5064
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.deposit.done })
|
|
5029
5065
|
] })
|
|
5030
5066
|
] }) });
|
|
5031
5067
|
};
|
|
@@ -5033,7 +5069,7 @@ var CardPurchaseSuccessStep = ({
|
|
|
5033
5069
|
// src/deposit/steps/wallet-processing.tsx
|
|
5034
5070
|
var import_hooks22 = require("@agg-build/hooks");
|
|
5035
5071
|
var import_react7 = require("react");
|
|
5036
|
-
var
|
|
5072
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
5037
5073
|
var WalletProcessingStep = ({
|
|
5038
5074
|
steps,
|
|
5039
5075
|
errorMessage,
|
|
@@ -5046,14 +5082,14 @@ var WalletProcessingStep = ({
|
|
|
5046
5082
|
onComplete();
|
|
5047
5083
|
}
|
|
5048
5084
|
}, [steps, onComplete]);
|
|
5049
|
-
return /* @__PURE__ */ (0,
|
|
5050
|
-
/* @__PURE__ */ (0,
|
|
5051
|
-
/* @__PURE__ */ (0,
|
|
5085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
5086
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Modal.Header, { title: labels.deposit.processingTitle, hideBorder: true }),
|
|
5087
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex flex-col gap-5", children: [
|
|
5052
5088
|
steps.map((step) => {
|
|
5053
5089
|
const isComplete = step.status === "complete";
|
|
5054
5090
|
const isActive = step.status === "active";
|
|
5055
|
-
return /* @__PURE__ */ (0,
|
|
5056
|
-
isComplete ? /* @__PURE__ */ (0,
|
|
5091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
5092
|
+
isComplete ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(CheckCircleIcon, { className: "h-4 w-4 text-agg-primary" }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
5057
5093
|
"span",
|
|
5058
5094
|
{
|
|
5059
5095
|
className: [
|
|
@@ -5063,7 +5099,7 @@ var WalletProcessingStep = ({
|
|
|
5063
5099
|
].join(" ")
|
|
5064
5100
|
}
|
|
5065
5101
|
),
|
|
5066
|
-
/* @__PURE__ */ (0,
|
|
5102
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
5067
5103
|
"p",
|
|
5068
5104
|
{
|
|
5069
5105
|
className: isComplete || isActive ? "agg-type-body text-agg-foreground" : "agg-type-body text-agg-muted-foreground",
|
|
@@ -5072,17 +5108,17 @@ var WalletProcessingStep = ({
|
|
|
5072
5108
|
)
|
|
5073
5109
|
] }, step.id);
|
|
5074
5110
|
}),
|
|
5075
|
-
errorMessage ? /* @__PURE__ */ (0,
|
|
5111
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: "agg-type-body text-agg-destructive", children: errorMessage }) : null
|
|
5076
5112
|
] }) })
|
|
5077
5113
|
] });
|
|
5078
5114
|
};
|
|
5079
5115
|
|
|
5080
5116
|
// src/deposit/steps/wallet-success.tsx
|
|
5081
5117
|
var import_hooks23 = require("@agg-build/hooks");
|
|
5082
|
-
var
|
|
5083
|
-
var SummaryRow2 = ({ label, value }) => /* @__PURE__ */ (0,
|
|
5084
|
-
/* @__PURE__ */ (0,
|
|
5085
|
-
/* @__PURE__ */ (0,
|
|
5118
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
5119
|
+
var SummaryRow2 = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center justify-between border-b border-agg-separator py-2 last:border-b-0", children: [
|
|
5120
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
|
|
5121
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "agg-type-label text-agg-foreground", children: value })
|
|
5086
5122
|
] });
|
|
5087
5123
|
var WalletSuccessStep = ({
|
|
5088
5124
|
summary,
|
|
@@ -5090,42 +5126,42 @@ var WalletSuccessStep = ({
|
|
|
5090
5126
|
onClose
|
|
5091
5127
|
}) => {
|
|
5092
5128
|
const labels = (0, import_hooks23.useLabels)();
|
|
5093
|
-
return /* @__PURE__ */ (0,
|
|
5094
|
-
/* @__PURE__ */ (0,
|
|
5129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
|
|
5130
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
5095
5131
|
"button",
|
|
5096
5132
|
{
|
|
5097
5133
|
type: "button",
|
|
5098
5134
|
className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
|
|
5099
5135
|
onClick: onClose,
|
|
5100
5136
|
"aria-label": labels.common.close,
|
|
5101
|
-
children: /* @__PURE__ */ (0,
|
|
5137
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CloseIcon, { className: "h-6 w-6" })
|
|
5102
5138
|
}
|
|
5103
5139
|
),
|
|
5104
|
-
/* @__PURE__ */ (0,
|
|
5105
|
-
/* @__PURE__ */ (0,
|
|
5106
|
-
/* @__PURE__ */ (0,
|
|
5107
|
-
/* @__PURE__ */ (0,
|
|
5108
|
-
/* @__PURE__ */ (0,
|
|
5140
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
|
|
5141
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
|
|
5142
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
5143
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.successTitle }),
|
|
5144
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.successDescription })
|
|
5109
5145
|
] }),
|
|
5110
|
-
/* @__PURE__ */ (0,
|
|
5111
|
-
/* @__PURE__ */ (0,
|
|
5146
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "w-full rounded-lg border border-agg-separator bg-agg-secondary px-3 py-1", children: [
|
|
5147
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
5112
5148
|
SummaryRow2,
|
|
5113
5149
|
{
|
|
5114
5150
|
label: labels.deposit.summary.amountReceived,
|
|
5115
5151
|
value: summary.amountReceived
|
|
5116
5152
|
}
|
|
5117
5153
|
),
|
|
5118
|
-
/* @__PURE__ */ (0,
|
|
5119
|
-
/* @__PURE__ */ (0,
|
|
5120
|
-
/* @__PURE__ */ (0,
|
|
5154
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(SummaryRow2, { label: labels.deposit.summary.network, value: summary.network }),
|
|
5155
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(SummaryRow2, { label: labels.deposit.summary.fromWallet, value: summary.fromWallet }),
|
|
5156
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(SummaryRow2, { label: labels.deposit.summary.gasFee, value: summary.gasFee })
|
|
5121
5157
|
] }),
|
|
5122
|
-
/* @__PURE__ */ (0,
|
|
5158
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.deposit.done })
|
|
5123
5159
|
] })
|
|
5124
5160
|
] }) });
|
|
5125
5161
|
};
|
|
5126
5162
|
|
|
5127
5163
|
// src/deposit/index.tsx
|
|
5128
|
-
var
|
|
5164
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
5129
5165
|
var PENDING_CARD_SESSION_KEY = "agg-pending-card-session";
|
|
5130
5166
|
function savePendingCardSession(data) {
|
|
5131
5167
|
try {
|
|
@@ -5173,7 +5209,7 @@ function isControlledDepositModalProps(props) {
|
|
|
5173
5209
|
}
|
|
5174
5210
|
function DepositModalSelfDriven({ open, onOpenChange }) {
|
|
5175
5211
|
const depositProps = (0, import_deposit.useDepositFlow)({ open, onOpenChange });
|
|
5176
|
-
return /* @__PURE__ */ (0,
|
|
5212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(DepositModalControlled, __spreadValues({}, depositProps));
|
|
5177
5213
|
}
|
|
5178
5214
|
function DepositModalControlled({
|
|
5179
5215
|
open,
|
|
@@ -5449,8 +5485,8 @@ function DepositModalControlled({
|
|
|
5449
5485
|
onOpenChange(isOpen);
|
|
5450
5486
|
};
|
|
5451
5487
|
const depositModalMaxWidth = step === "method" ? "600px" : "480px";
|
|
5452
|
-
return /* @__PURE__ */ (0,
|
|
5453
|
-
step === "method" ? /* @__PURE__ */ (0,
|
|
5488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(Modal.Container, { maxWidth: depositModalMaxWidth, "aria-label": "Deposit", children: [
|
|
5489
|
+
step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5454
5490
|
DepositMethodStep,
|
|
5455
5491
|
{
|
|
5456
5492
|
balance: walletFlow.balance,
|
|
@@ -5463,7 +5499,7 @@ function DepositModalControlled({
|
|
|
5463
5499
|
onSelectMethod: handleSelectMethod
|
|
5464
5500
|
}
|
|
5465
5501
|
) : null,
|
|
5466
|
-
step === "wallet-form" ? /* @__PURE__ */ (0,
|
|
5502
|
+
step === "wallet-form" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5467
5503
|
WalletFormStep,
|
|
5468
5504
|
{
|
|
5469
5505
|
walletLabel: walletFlow.walletLabel,
|
|
@@ -5527,7 +5563,7 @@ function DepositModalControlled({
|
|
|
5527
5563
|
})
|
|
5528
5564
|
}
|
|
5529
5565
|
) : null,
|
|
5530
|
-
step === "wallet-processing" ? /* @__PURE__ */ (0,
|
|
5566
|
+
step === "wallet-processing" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5531
5567
|
WalletProcessingStep,
|
|
5532
5568
|
{
|
|
5533
5569
|
steps: processingSteps,
|
|
@@ -5535,7 +5571,7 @@ function DepositModalControlled({
|
|
|
5535
5571
|
onComplete: () => setStep("wallet-success")
|
|
5536
5572
|
}
|
|
5537
5573
|
) : null,
|
|
5538
|
-
step === "wallet-success" ? /* @__PURE__ */ (0,
|
|
5574
|
+
step === "wallet-success" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5539
5575
|
WalletSuccessStep,
|
|
5540
5576
|
{
|
|
5541
5577
|
summary: resolvedSuccessSummary,
|
|
@@ -5543,7 +5579,7 @@ function DepositModalControlled({
|
|
|
5543
5579
|
onClose: () => handleOpenChange(false)
|
|
5544
5580
|
}
|
|
5545
5581
|
) : null,
|
|
5546
|
-
step === "card-deposit" && cardFlow ? /* @__PURE__ */ (0,
|
|
5582
|
+
step === "card-deposit" && cardFlow ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5547
5583
|
CardDepositStep,
|
|
5548
5584
|
{
|
|
5549
5585
|
amount: cardFlow.amount,
|
|
@@ -5565,7 +5601,7 @@ function DepositModalControlled({
|
|
|
5565
5601
|
onContinue: handleContinueCardDeposit
|
|
5566
5602
|
}
|
|
5567
5603
|
) : null,
|
|
5568
|
-
step === "card-provider" && cardFlow ? /* @__PURE__ */ (0,
|
|
5604
|
+
step === "card-provider" && cardFlow ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5569
5605
|
CardProviderStep,
|
|
5570
5606
|
{
|
|
5571
5607
|
amount: cardFlow.amount,
|
|
@@ -5580,7 +5616,7 @@ function DepositModalControlled({
|
|
|
5580
5616
|
onRetry: handleRetryQuotes
|
|
5581
5617
|
}
|
|
5582
5618
|
) : null,
|
|
5583
|
-
step === "card-payment-pending" ? /* @__PURE__ */ (0,
|
|
5619
|
+
step === "card-payment-pending" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5584
5620
|
CardPaymentPendingStep,
|
|
5585
5621
|
{
|
|
5586
5622
|
providerName: pendingProviderName,
|
|
@@ -5590,7 +5626,7 @@ function DepositModalControlled({
|
|
|
5590
5626
|
onChooseAnotherProvider: handleChooseAnotherProvider
|
|
5591
5627
|
}
|
|
5592
5628
|
) : null,
|
|
5593
|
-
step === "card-success" ? /* @__PURE__ */ (0,
|
|
5629
|
+
step === "card-success" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5594
5630
|
CardPurchaseSuccessStep,
|
|
5595
5631
|
{
|
|
5596
5632
|
summary: (_g = pendingCardPurchaseSummary != null ? pendingCardPurchaseSummary : cardFlow == null ? void 0 : cardFlow.purchaseSummary) != null ? _g : {
|
|
@@ -5602,7 +5638,7 @@ function DepositModalControlled({
|
|
|
5602
5638
|
onDone: handleDoneCardPurchase
|
|
5603
5639
|
}
|
|
5604
5640
|
) : null,
|
|
5605
|
-
step === "crypto-transfer" ? /* @__PURE__ */ (0,
|
|
5641
|
+
step === "crypto-transfer" ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
5606
5642
|
CryptoTransferStep,
|
|
5607
5643
|
{
|
|
5608
5644
|
tokenOptions: sendTokenOptions,
|
|
@@ -5628,9 +5664,9 @@ function DepositModalControlled({
|
|
|
5628
5664
|
}
|
|
5629
5665
|
var DepositModal = (props) => {
|
|
5630
5666
|
if (!isControlledDepositModalProps(props)) {
|
|
5631
|
-
return /* @__PURE__ */ (0,
|
|
5667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(DepositModalSelfDriven, __spreadValues({}, props));
|
|
5632
5668
|
}
|
|
5633
|
-
return /* @__PURE__ */ (0,
|
|
5669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(DepositModalControlled, __spreadValues({}, props));
|
|
5634
5670
|
};
|
|
5635
5671
|
DepositModal.displayName = "DepositModal";
|
|
5636
5672
|
|
|
@@ -5640,21 +5676,21 @@ var import_withdraw2 = require("@agg-build/hooks/withdraw");
|
|
|
5640
5676
|
|
|
5641
5677
|
// src/withdraw/steps/withdraw-method.tsx
|
|
5642
5678
|
var import_hooks25 = require("@agg-build/hooks");
|
|
5643
|
-
var
|
|
5679
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
5644
5680
|
var WithdrawMethodStep = ({
|
|
5645
5681
|
balance,
|
|
5646
5682
|
onSelectMethod
|
|
5647
5683
|
}) => {
|
|
5648
5684
|
const labels = (0, import_hooks25.useLabels)();
|
|
5649
|
-
return /* @__PURE__ */ (0,
|
|
5650
|
-
/* @__PURE__ */ (0,
|
|
5651
|
-
/* @__PURE__ */ (0,
|
|
5652
|
-
/* @__PURE__ */ (0,
|
|
5685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
|
|
5686
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Modal.Header, { title: labels.withdraw.title, hideBorder: true }),
|
|
5687
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col gap-5", children: [
|
|
5688
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "agg-type-body text-agg-foreground", children: [
|
|
5653
5689
|
labels.withdraw.balancePrefix,
|
|
5654
5690
|
" ",
|
|
5655
5691
|
formatCompactUsd(balance)
|
|
5656
5692
|
] }),
|
|
5657
|
-
/* @__PURE__ */ (0,
|
|
5693
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
5658
5694
|
"div",
|
|
5659
5695
|
{
|
|
5660
5696
|
className: cn(
|
|
@@ -5671,12 +5707,12 @@ var WithdrawMethodStep = ({
|
|
|
5671
5707
|
}
|
|
5672
5708
|
},
|
|
5673
5709
|
children: [
|
|
5674
|
-
/* @__PURE__ */ (0,
|
|
5675
|
-
/* @__PURE__ */ (0,
|
|
5676
|
-
/* @__PURE__ */ (0,
|
|
5677
|
-
/* @__PURE__ */ (0,
|
|
5710
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-muted-foreground" }) }),
|
|
5711
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
5712
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: labels.withdraw.methods.walletTitle }),
|
|
5713
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: labels.withdraw.methods.walletDescription })
|
|
5678
5714
|
] }),
|
|
5679
|
-
/* @__PURE__ */ (0,
|
|
5715
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "shrink-0 text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ChevronRightIcon, { className: "h-5 w-5" }) })
|
|
5680
5716
|
]
|
|
5681
5717
|
}
|
|
5682
5718
|
)
|
|
@@ -5686,7 +5722,7 @@ var WithdrawMethodStep = ({
|
|
|
5686
5722
|
|
|
5687
5723
|
// src/withdraw/steps/withdraw-amount.tsx
|
|
5688
5724
|
var import_hooks26 = require("@agg-build/hooks");
|
|
5689
|
-
var
|
|
5725
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
5690
5726
|
var WithdrawAmountStep = ({
|
|
5691
5727
|
amount,
|
|
5692
5728
|
destinationWallet,
|
|
@@ -5712,28 +5748,28 @@ var WithdrawAmountStep = ({
|
|
|
5712
5748
|
const isValidAddress = isSolanaDest ? /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(trimmedDestination) : /^0x[a-fA-F0-9]{40}$/.test(trimmedDestination);
|
|
5713
5749
|
const isValid = Number(amount) > 0 && isValidAddress;
|
|
5714
5750
|
const isDisabled = !isValid || isConfirming;
|
|
5715
|
-
return /* @__PURE__ */ (0,
|
|
5716
|
-
/* @__PURE__ */ (0,
|
|
5751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
|
|
5752
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5717
5753
|
Modal.Header,
|
|
5718
5754
|
{
|
|
5719
5755
|
title: labels.withdraw.walletFlow.title,
|
|
5720
5756
|
hideBorder: true,
|
|
5721
|
-
leftElement: /* @__PURE__ */ (0,
|
|
5757
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5722
5758
|
"button",
|
|
5723
5759
|
{
|
|
5724
5760
|
type: "button",
|
|
5725
5761
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
5726
5762
|
onClick: onBack,
|
|
5727
5763
|
"aria-label": labels.withdraw.back,
|
|
5728
|
-
children: /* @__PURE__ */ (0,
|
|
5764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
5729
5765
|
}
|
|
5730
5766
|
)
|
|
5731
5767
|
}
|
|
5732
5768
|
),
|
|
5733
|
-
/* @__PURE__ */ (0,
|
|
5734
|
-
/* @__PURE__ */ (0,
|
|
5735
|
-
/* @__PURE__ */ (0,
|
|
5736
|
-
/* @__PURE__ */ (0,
|
|
5769
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-5", children: [
|
|
5770
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
5771
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.recipientAddressLabel }),
|
|
5772
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5737
5773
|
"input",
|
|
5738
5774
|
{
|
|
5739
5775
|
type: "text",
|
|
@@ -5749,13 +5785,13 @@ var WithdrawAmountStep = ({
|
|
|
5749
5785
|
}
|
|
5750
5786
|
)
|
|
5751
5787
|
] }),
|
|
5752
|
-
/* @__PURE__ */ (0,
|
|
5753
|
-
/* @__PURE__ */ (0,
|
|
5754
|
-
/* @__PURE__ */ (0,
|
|
5755
|
-
/* @__PURE__ */ (0,
|
|
5788
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
5789
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
5790
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
|
|
5791
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: balanceDisplay })
|
|
5756
5792
|
] }),
|
|
5757
|
-
/* @__PURE__ */ (0,
|
|
5758
|
-
/* @__PURE__ */ (0,
|
|
5793
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
|
|
5794
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5759
5795
|
"input",
|
|
5760
5796
|
{
|
|
5761
5797
|
type: "text",
|
|
@@ -5770,8 +5806,8 @@ var WithdrawAmountStep = ({
|
|
|
5770
5806
|
onChange: (e) => onAmountChange(e.target.value)
|
|
5771
5807
|
}
|
|
5772
5808
|
),
|
|
5773
|
-
/* @__PURE__ */ (0,
|
|
5774
|
-
onMaxClick ? /* @__PURE__ */ (0,
|
|
5809
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "agg-type-body text-agg-muted-foreground shrink-0", children: selectedToken }),
|
|
5810
|
+
onMaxClick ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5775
5811
|
"button",
|
|
5776
5812
|
{
|
|
5777
5813
|
type: "button",
|
|
@@ -5782,10 +5818,10 @@ var WithdrawAmountStep = ({
|
|
|
5782
5818
|
) : null
|
|
5783
5819
|
] })
|
|
5784
5820
|
] }),
|
|
5785
|
-
/* @__PURE__ */ (0,
|
|
5786
|
-
/* @__PURE__ */ (0,
|
|
5787
|
-
/* @__PURE__ */ (0,
|
|
5788
|
-
/* @__PURE__ */ (0,
|
|
5821
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row sm:gap-5", children: [
|
|
5822
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
|
|
5823
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.tokenLabel }),
|
|
5824
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5789
5825
|
Select,
|
|
5790
5826
|
{
|
|
5791
5827
|
items: tokenOptions,
|
|
@@ -5795,9 +5831,9 @@ var WithdrawAmountStep = ({
|
|
|
5795
5831
|
}
|
|
5796
5832
|
)
|
|
5797
5833
|
] }),
|
|
5798
|
-
/* @__PURE__ */ (0,
|
|
5799
|
-
/* @__PURE__ */ (0,
|
|
5800
|
-
/* @__PURE__ */ (0,
|
|
5834
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
|
|
5835
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.networkLabel }),
|
|
5836
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5801
5837
|
Select,
|
|
5802
5838
|
{
|
|
5803
5839
|
items: networkOptions,
|
|
@@ -5808,7 +5844,7 @@ var WithdrawAmountStep = ({
|
|
|
5808
5844
|
)
|
|
5809
5845
|
] })
|
|
5810
5846
|
] }),
|
|
5811
|
-
/* @__PURE__ */ (0,
|
|
5847
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
5812
5848
|
Button,
|
|
5813
5849
|
{
|
|
5814
5850
|
variant: isValid && !isConfirming ? "primary" : "secondary",
|
|
@@ -5819,7 +5855,7 @@ var WithdrawAmountStep = ({
|
|
|
5819
5855
|
children: isConfirming ? labels.common.loading : labels.withdraw.walletFlow.confirm
|
|
5820
5856
|
}
|
|
5821
5857
|
),
|
|
5822
|
-
error ? /* @__PURE__ */ (0,
|
|
5858
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label text-agg-error text-center", role: "alert", children: error }) : null
|
|
5823
5859
|
] }) })
|
|
5824
5860
|
] });
|
|
5825
5861
|
};
|
|
@@ -5911,15 +5947,15 @@ var buildWithdrawalLifecycleSteps = ({
|
|
|
5911
5947
|
};
|
|
5912
5948
|
|
|
5913
5949
|
// src/withdraw/steps/withdraw-success.tsx
|
|
5914
|
-
var
|
|
5915
|
-
var SummaryRow3 = ({ label, value }) => /* @__PURE__ */ (0,
|
|
5916
|
-
/* @__PURE__ */ (0,
|
|
5917
|
-
/* @__PURE__ */ (0,
|
|
5950
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
5951
|
+
var SummaryRow3 = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center justify-between border-b border-agg-separator py-2 last:border-b-0", children: [
|
|
5952
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
|
|
5953
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "agg-type-label text-agg-foreground", children: value })
|
|
5918
5954
|
] });
|
|
5919
5955
|
var LoadingGlyph = ({
|
|
5920
5956
|
className,
|
|
5921
5957
|
enableAnimations
|
|
5922
|
-
}) => /* @__PURE__ */ (0,
|
|
5958
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
5923
5959
|
"span",
|
|
5924
5960
|
{
|
|
5925
5961
|
"aria-hidden": "true",
|
|
@@ -5997,21 +6033,21 @@ var WithdrawSuccessStep = ({
|
|
|
5997
6033
|
descriptionCopy: walletFlowLabels.successDescription(tokenSymbol)
|
|
5998
6034
|
};
|
|
5999
6035
|
})();
|
|
6000
|
-
return /* @__PURE__ */ (0,
|
|
6001
|
-
/* @__PURE__ */ (0,
|
|
6036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
|
|
6037
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6002
6038
|
"button",
|
|
6003
6039
|
{
|
|
6004
6040
|
type: "button",
|
|
6005
6041
|
className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80 cursor-pointer",
|
|
6006
6042
|
onClick: onClose,
|
|
6007
6043
|
"aria-label": labels.common.close,
|
|
6008
|
-
children: /* @__PURE__ */ (0,
|
|
6044
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CloseIcon, { className: "h-6 w-6" })
|
|
6009
6045
|
}
|
|
6010
6046
|
),
|
|
6011
|
-
/* @__PURE__ */ (0,
|
|
6012
|
-
/* @__PURE__ */ (0,
|
|
6013
|
-
/* @__PURE__ */ (0,
|
|
6014
|
-
/* @__PURE__ */ (0,
|
|
6047
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
|
|
6048
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
6049
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: titleCopy }),
|
|
6050
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6015
6051
|
"p",
|
|
6016
6052
|
{
|
|
6017
6053
|
className: "agg-type-body text-agg-muted-foreground",
|
|
@@ -6020,10 +6056,10 @@ var WithdrawSuccessStep = ({
|
|
|
6020
6056
|
children: descriptionCopy
|
|
6021
6057
|
}
|
|
6022
6058
|
),
|
|
6023
|
-
state.errorMessage ? /* @__PURE__ */ (0,
|
|
6059
|
+
state.errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "agg-type-body text-agg-destructive", children: state.errorMessage }) : null
|
|
6024
6060
|
] }),
|
|
6025
|
-
hasDetails || !state.pending ? /* @__PURE__ */ (0,
|
|
6026
|
-
hasDetails ? /* @__PURE__ */ (0,
|
|
6061
|
+
hasDetails || !state.pending ? /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "agg-withdraw-success-timeline flex w-full flex-col gap-2", children: [
|
|
6062
|
+
hasDetails ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6027
6063
|
"div",
|
|
6028
6064
|
{
|
|
6029
6065
|
"aria-hidden": !isTimelineExpanded,
|
|
@@ -6036,17 +6072,17 @@ var WithdrawSuccessStep = ({
|
|
|
6036
6072
|
"transition-[grid-template-rows,opacity] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"
|
|
6037
6073
|
)
|
|
6038
6074
|
),
|
|
6039
|
-
children: /* @__PURE__ */ (0,
|
|
6075
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "flex flex-col gap-4 pb-2", children: groups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6040
6076
|
"div",
|
|
6041
6077
|
{
|
|
6042
6078
|
className: "flex flex-col gap-2",
|
|
6043
|
-
children: group.map((step) => /* @__PURE__ */ (0,
|
|
6079
|
+
children: group.map((step) => /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
6044
6080
|
"div",
|
|
6045
6081
|
{
|
|
6046
6082
|
className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
|
|
6047
6083
|
"data-step-status": step.status,
|
|
6048
6084
|
children: [
|
|
6049
|
-
step.status === "pending" ? /* @__PURE__ */ (0,
|
|
6085
|
+
step.status === "pending" ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6050
6086
|
LoadingGlyph,
|
|
6051
6087
|
{
|
|
6052
6088
|
enableAnimations,
|
|
@@ -6055,7 +6091,7 @@ var WithdrawSuccessStep = ({
|
|
|
6055
6091
|
stepIconClassNameFor(step.status)
|
|
6056
6092
|
)
|
|
6057
6093
|
}
|
|
6058
|
-
) : /* @__PURE__ */ (0,
|
|
6094
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6059
6095
|
Icon,
|
|
6060
6096
|
{
|
|
6061
6097
|
name: stepIconNameFor(step.status),
|
|
@@ -6067,7 +6103,7 @@ var WithdrawSuccessStep = ({
|
|
|
6067
6103
|
"aria-hidden": "true"
|
|
6068
6104
|
}
|
|
6069
6105
|
),
|
|
6070
|
-
/* @__PURE__ */ (0,
|
|
6106
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "min-w-0 flex-1", children: step.label })
|
|
6071
6107
|
]
|
|
6072
6108
|
},
|
|
6073
6109
|
step.id
|
|
@@ -6077,7 +6113,7 @@ var WithdrawSuccessStep = ({
|
|
|
6077
6113
|
)) }) })
|
|
6078
6114
|
}
|
|
6079
6115
|
) : null,
|
|
6080
|
-
hasDetails ? /* @__PURE__ */ (0,
|
|
6116
|
+
hasDetails ? /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
6081
6117
|
"button",
|
|
6082
6118
|
{
|
|
6083
6119
|
type: "button",
|
|
@@ -6089,13 +6125,13 @@ var WithdrawSuccessStep = ({
|
|
|
6089
6125
|
),
|
|
6090
6126
|
onClick: () => setIsTimelineExpanded((current) => !current),
|
|
6091
6127
|
children: [
|
|
6092
|
-
finalStep.status === "pending" ? /* @__PURE__ */ (0,
|
|
6128
|
+
finalStep.status === "pending" ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6093
6129
|
LoadingGlyph,
|
|
6094
6130
|
{
|
|
6095
6131
|
enableAnimations,
|
|
6096
6132
|
className: cn("h-3 w-3 shrink-0", stepIconClassNameFor(finalStep.status))
|
|
6097
6133
|
}
|
|
6098
|
-
) : /* @__PURE__ */ (0,
|
|
6134
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6099
6135
|
Icon,
|
|
6100
6136
|
{
|
|
6101
6137
|
name: stepIconNameFor(finalStep.status),
|
|
@@ -6104,8 +6140,8 @@ var WithdrawSuccessStep = ({
|
|
|
6104
6140
|
"aria-hidden": "true"
|
|
6105
6141
|
}
|
|
6106
6142
|
),
|
|
6107
|
-
/* @__PURE__ */ (0,
|
|
6108
|
-
/* @__PURE__ */ (0,
|
|
6143
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "min-w-0 flex-1", children: finalStep.label }),
|
|
6144
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6109
6145
|
Icon,
|
|
6110
6146
|
{
|
|
6111
6147
|
name: isTimelineExpanded ? "chevron-up" : "chevron-down",
|
|
@@ -6118,25 +6154,25 @@ var WithdrawSuccessStep = ({
|
|
|
6118
6154
|
}
|
|
6119
6155
|
) : null
|
|
6120
6156
|
] }) : null,
|
|
6121
|
-
/* @__PURE__ */ (0,
|
|
6122
|
-
/* @__PURE__ */ (0,
|
|
6157
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "w-full rounded-lg border border-agg-separator bg-agg-secondary px-3 py-1", children: [
|
|
6158
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6123
6159
|
SummaryRow3,
|
|
6124
6160
|
{
|
|
6125
6161
|
label: walletFlowLabels.summary.amountReceived,
|
|
6126
6162
|
value: summary.amountReceived
|
|
6127
6163
|
}
|
|
6128
6164
|
),
|
|
6129
|
-
/* @__PURE__ */ (0,
|
|
6130
|
-
/* @__PURE__ */ (0,
|
|
6131
|
-
/* @__PURE__ */ (0,
|
|
6165
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SummaryRow3, { label: walletFlowLabels.summary.network, value: summary.network }),
|
|
6166
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SummaryRow3, { label: walletFlowLabels.summary.toWallet, value: summary.toWallet }),
|
|
6167
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(SummaryRow3, { label: walletFlowLabels.summary.fees, value: summary.fees })
|
|
6132
6168
|
] }),
|
|
6133
|
-
/* @__PURE__ */ (0,
|
|
6169
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Button, { variant: "secondary", size: "large", className: "w-[160px]", onClick: onDone, children: labels.withdraw.done })
|
|
6134
6170
|
] })
|
|
6135
6171
|
] }) });
|
|
6136
6172
|
};
|
|
6137
6173
|
|
|
6138
6174
|
// src/withdraw/index.tsx
|
|
6139
|
-
var
|
|
6175
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
6140
6176
|
function isControlledWithdrawModalProps(props) {
|
|
6141
6177
|
return "withdrawFlow" in props;
|
|
6142
6178
|
}
|
|
@@ -6145,7 +6181,7 @@ function WithdrawModalSelfDriven({
|
|
|
6145
6181
|
onOpenChange
|
|
6146
6182
|
}) {
|
|
6147
6183
|
const withdrawProps = (0, import_withdraw2.useWithdrawFlow)({ open, onOpenChange });
|
|
6148
|
-
return /* @__PURE__ */ (0,
|
|
6184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(WithdrawModalControlled, __spreadValues({}, withdrawProps));
|
|
6149
6185
|
}
|
|
6150
6186
|
function WithdrawModalControlled({
|
|
6151
6187
|
open,
|
|
@@ -6195,15 +6231,15 @@ function WithdrawModalControlled({
|
|
|
6195
6231
|
});
|
|
6196
6232
|
const withdrawTokenOptions = withTokenIcons(withdrawFlow.tokenOptions);
|
|
6197
6233
|
const withdrawNetworkOptions = withNetworkIcons(withdrawFlow.networkOptions);
|
|
6198
|
-
return /* @__PURE__ */ (0,
|
|
6199
|
-
step === "method" ? /* @__PURE__ */ (0,
|
|
6234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
|
|
6235
|
+
step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6200
6236
|
WithdrawMethodStep,
|
|
6201
6237
|
{
|
|
6202
6238
|
balance: withdrawFlow.balance,
|
|
6203
6239
|
onSelectMethod: () => setStep("withdraw-amount")
|
|
6204
6240
|
}
|
|
6205
6241
|
) : null,
|
|
6206
|
-
step === "withdraw-amount" ? /* @__PURE__ */ (0,
|
|
6242
|
+
step === "withdraw-amount" ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6207
6243
|
WithdrawAmountStep,
|
|
6208
6244
|
{
|
|
6209
6245
|
amount: withdrawFlow.amount,
|
|
@@ -6224,7 +6260,7 @@ function WithdrawModalControlled({
|
|
|
6224
6260
|
onContinue: handleConfirm
|
|
6225
6261
|
}
|
|
6226
6262
|
) : null,
|
|
6227
|
-
step === "success" ? /* @__PURE__ */ (0,
|
|
6263
|
+
step === "success" ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6228
6264
|
WithdrawSuccessStep,
|
|
6229
6265
|
{
|
|
6230
6266
|
summary: withdrawFlow.purchaseSummary,
|
|
@@ -6238,9 +6274,9 @@ function WithdrawModalControlled({
|
|
|
6238
6274
|
}
|
|
6239
6275
|
var WithdrawModal = (props) => {
|
|
6240
6276
|
if (isControlledWithdrawModalProps(props)) {
|
|
6241
|
-
return /* @__PURE__ */ (0,
|
|
6277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(WithdrawModalControlled, __spreadValues({}, props));
|
|
6242
6278
|
}
|
|
6243
|
-
return /* @__PURE__ */ (0,
|
|
6279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(WithdrawModalSelfDriven, __spreadValues({}, props));
|
|
6244
6280
|
};
|
|
6245
6281
|
WithdrawModal.displayName = "WithdrawModal";
|
|
6246
6282
|
|
|
@@ -6267,12 +6303,12 @@ var ONCHAIN_VENUES = [import_sdk10.Venue.polymarket, import_sdk10.Venue.opinion,
|
|
|
6267
6303
|
// src/onboarding/steps/how-it-works.tsx
|
|
6268
6304
|
var import_react11 = require("react");
|
|
6269
6305
|
var import_hooks28 = require("@agg-build/hooks");
|
|
6270
|
-
var
|
|
6306
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
6271
6307
|
var defaultIcons = {
|
|
6272
|
-
createAccount: /* @__PURE__ */ (0,
|
|
6273
|
-
linkAccounts: /* @__PURE__ */ (0,
|
|
6274
|
-
bestPrices: /* @__PURE__ */ (0,
|
|
6275
|
-
stayInControl: /* @__PURE__ */ (0,
|
|
6308
|
+
createAccount: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
|
|
6309
|
+
linkAccounts: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
|
|
6310
|
+
bestPrices: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
|
|
6311
|
+
stayInControl: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
|
|
6276
6312
|
};
|
|
6277
6313
|
var HowItWorksStep = ({ onContinue, icons }) => {
|
|
6278
6314
|
const labels = (0, import_hooks28.useLabels)();
|
|
@@ -6285,10 +6321,10 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
6285
6321
|
setShowTopGradient(el.scrollTop > 0);
|
|
6286
6322
|
setShowBottomGradient(el.scrollTop + el.clientHeight < el.scrollHeight - 1);
|
|
6287
6323
|
}, []);
|
|
6288
|
-
return /* @__PURE__ */ (0,
|
|
6289
|
-
/* @__PURE__ */ (0,
|
|
6290
|
-
/* @__PURE__ */ (0,
|
|
6291
|
-
/* @__PURE__ */ (0,
|
|
6324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
|
|
6325
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
|
|
6326
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
|
|
6327
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6292
6328
|
"div",
|
|
6293
6329
|
{
|
|
6294
6330
|
ref: scrollRef,
|
|
@@ -6298,7 +6334,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
6298
6334
|
var _a;
|
|
6299
6335
|
const icon = (_a = icons == null ? void 0 : icons[featureKey]) != null ? _a : defaultIcons[featureKey];
|
|
6300
6336
|
const feature = labels.onboarding.howItWorks.features[featureKey];
|
|
6301
|
-
return /* @__PURE__ */ (0,
|
|
6337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
6302
6338
|
"div",
|
|
6303
6339
|
{
|
|
6304
6340
|
className: cn(
|
|
@@ -6307,11 +6343,11 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
6307
6343
|
"bg-agg-secondary-hover"
|
|
6308
6344
|
),
|
|
6309
6345
|
children: [
|
|
6310
|
-
/* @__PURE__ */ (0,
|
|
6311
|
-
/* @__PURE__ */ (0,
|
|
6312
|
-
/* @__PURE__ */ (0,
|
|
6346
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
|
|
6347
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
|
|
6348
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
|
|
6313
6349
|
] }),
|
|
6314
|
-
icon ? /* @__PURE__ */ (0,
|
|
6350
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
|
|
6315
6351
|
]
|
|
6316
6352
|
},
|
|
6317
6353
|
featureKey
|
|
@@ -6319,7 +6355,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
6319
6355
|
})
|
|
6320
6356
|
}
|
|
6321
6357
|
),
|
|
6322
|
-
/* @__PURE__ */ (0,
|
|
6358
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6323
6359
|
"div",
|
|
6324
6360
|
{
|
|
6325
6361
|
className: cn(
|
|
@@ -6330,7 +6366,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
6330
6366
|
)
|
|
6331
6367
|
}
|
|
6332
6368
|
),
|
|
6333
|
-
/* @__PURE__ */ (0,
|
|
6369
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6334
6370
|
"div",
|
|
6335
6371
|
{
|
|
6336
6372
|
className: cn(
|
|
@@ -6342,7 +6378,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
6342
6378
|
}
|
|
6343
6379
|
)
|
|
6344
6380
|
] }),
|
|
6345
|
-
/* @__PURE__ */ (0,
|
|
6381
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
|
|
6346
6382
|
] });
|
|
6347
6383
|
};
|
|
6348
6384
|
HowItWorksStep.displayName = "HowItWorksStep";
|
|
@@ -6372,7 +6408,7 @@ var resolveVenueLogoIsColor = ({
|
|
|
6372
6408
|
};
|
|
6373
6409
|
|
|
6374
6410
|
// src/primitives/venue-logo/index.tsx
|
|
6375
|
-
var
|
|
6411
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
6376
6412
|
var VenueLogo = ({
|
|
6377
6413
|
venue,
|
|
6378
6414
|
variant = "icon",
|
|
@@ -6398,7 +6434,7 @@ var VenueLogo = ({
|
|
|
6398
6434
|
console.warn(`[AggUI] Unknown venue "${venue}" \u2014 using default logo`);
|
|
6399
6435
|
}
|
|
6400
6436
|
if (variant === "logo") {
|
|
6401
|
-
return /* @__PURE__ */ (0,
|
|
6437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6402
6438
|
RemoteImage,
|
|
6403
6439
|
{
|
|
6404
6440
|
src: (_a = venueLogoUrlRegistry[venue]) != null ? _a : DEFAULT_VENUE_LOGO_URL,
|
|
@@ -6413,7 +6449,7 @@ var VenueLogo = ({
|
|
|
6413
6449
|
isColor,
|
|
6414
6450
|
isMonochromatic
|
|
6415
6451
|
});
|
|
6416
|
-
return /* @__PURE__ */ (0,
|
|
6452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6417
6453
|
Component,
|
|
6418
6454
|
{
|
|
6419
6455
|
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
@@ -6427,7 +6463,7 @@ var VenueLogo = ({
|
|
|
6427
6463
|
VenueLogo.displayName = "VenueLogo";
|
|
6428
6464
|
|
|
6429
6465
|
// src/onboarding/steps/profile-setup.tsx
|
|
6430
|
-
var
|
|
6466
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
6431
6467
|
var ProfileSetupStep = ({ onContinue }) => {
|
|
6432
6468
|
const labels = (0, import_hooks30.useLabels)();
|
|
6433
6469
|
const [username, setUsername] = (0, import_react12.useState)("");
|
|
@@ -6457,11 +6493,11 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
6457
6493
|
avatarPreview
|
|
6458
6494
|
});
|
|
6459
6495
|
}, [username, avatarFile, avatarPreview, onContinue]);
|
|
6460
|
-
return /* @__PURE__ */ (0,
|
|
6461
|
-
/* @__PURE__ */ (0,
|
|
6462
|
-
/* @__PURE__ */ (0,
|
|
6463
|
-
/* @__PURE__ */ (0,
|
|
6464
|
-
/* @__PURE__ */ (0,
|
|
6496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-7", children: [
|
|
6497
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
|
|
6498
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-5 items-center w-full", children: [
|
|
6499
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex justify-center", children: [
|
|
6500
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(
|
|
6465
6501
|
"button",
|
|
6466
6502
|
{
|
|
6467
6503
|
type: "button",
|
|
@@ -6477,13 +6513,13 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
6477
6513
|
),
|
|
6478
6514
|
"aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
|
|
6479
6515
|
children: [
|
|
6480
|
-
!avatarPreview ? /* @__PURE__ */ (0,
|
|
6516
|
+
!avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6481
6517
|
"svg",
|
|
6482
6518
|
{
|
|
6483
6519
|
"aria-hidden": true,
|
|
6484
6520
|
viewBox: "0 0 80 80",
|
|
6485
6521
|
className: "pointer-events-none absolute inset-0 h-full w-full text-agg-separator group-hover:text-agg-muted-foreground",
|
|
6486
|
-
children: /* @__PURE__ */ (0,
|
|
6522
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6487
6523
|
"circle",
|
|
6488
6524
|
{
|
|
6489
6525
|
cx: "40",
|
|
@@ -6497,18 +6533,18 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
6497
6533
|
)
|
|
6498
6534
|
}
|
|
6499
6535
|
) : null,
|
|
6500
|
-
avatarPreview ? /* @__PURE__ */ (0,
|
|
6536
|
+
avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6501
6537
|
RemoteImage,
|
|
6502
6538
|
{
|
|
6503
6539
|
src: avatarPreview,
|
|
6504
6540
|
alt: labels.onboarding.profileSetup.profilePreviewAlt,
|
|
6505
6541
|
className: "h-full w-full object-cover"
|
|
6506
6542
|
}
|
|
6507
|
-
) : /* @__PURE__ */ (0,
|
|
6543
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
|
|
6508
6544
|
]
|
|
6509
6545
|
}
|
|
6510
6546
|
),
|
|
6511
|
-
/* @__PURE__ */ (0,
|
|
6547
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6512
6548
|
"input",
|
|
6513
6549
|
{
|
|
6514
6550
|
ref: fileInputRef,
|
|
@@ -6520,8 +6556,8 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
6520
6556
|
}
|
|
6521
6557
|
)
|
|
6522
6558
|
] }),
|
|
6523
|
-
/* @__PURE__ */ (0,
|
|
6524
|
-
/* @__PURE__ */ (0,
|
|
6559
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
6560
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6525
6561
|
"label",
|
|
6526
6562
|
{
|
|
6527
6563
|
htmlFor: "onboarding-username",
|
|
@@ -6529,7 +6565,7 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
6529
6565
|
children: labels.onboarding.profileSetup.usernameLabel
|
|
6530
6566
|
}
|
|
6531
6567
|
),
|
|
6532
|
-
/* @__PURE__ */ (0,
|
|
6568
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6533
6569
|
"input",
|
|
6534
6570
|
{
|
|
6535
6571
|
id: "onboarding-username",
|
|
@@ -6553,7 +6589,7 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
6553
6589
|
)
|
|
6554
6590
|
] })
|
|
6555
6591
|
] }),
|
|
6556
|
-
/* @__PURE__ */ (0,
|
|
6592
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
|
|
6557
6593
|
] });
|
|
6558
6594
|
};
|
|
6559
6595
|
ProfileSetupStep.displayName = "ProfileSetupStep";
|
|
@@ -6561,9 +6597,9 @@ ProfileSetupStep.displayName = "ProfileSetupStep";
|
|
|
6561
6597
|
// src/onboarding/steps/connect-accounts.tsx
|
|
6562
6598
|
var import_sdk11 = require("@agg-build/sdk");
|
|
6563
6599
|
var import_hooks31 = require("@agg-build/hooks");
|
|
6564
|
-
var
|
|
6600
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
6565
6601
|
var OnchainVenueLogos = () => {
|
|
6566
|
-
return /* @__PURE__ */ (0,
|
|
6602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
|
|
6567
6603
|
};
|
|
6568
6604
|
var VenueCard = ({
|
|
6569
6605
|
logos,
|
|
@@ -6575,7 +6611,7 @@ var VenueCard = ({
|
|
|
6575
6611
|
connected = false
|
|
6576
6612
|
}) => {
|
|
6577
6613
|
const labels = (0, import_hooks31.useLabels)();
|
|
6578
|
-
const action = connected ? /* @__PURE__ */ (0,
|
|
6614
|
+
const action = connected ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6579
6615
|
Button,
|
|
6580
6616
|
{
|
|
6581
6617
|
variant: "tertiary",
|
|
@@ -6585,18 +6621,18 @@ var VenueCard = ({
|
|
|
6585
6621
|
children: labels.onboarding.connectAccounts.connect
|
|
6586
6622
|
}
|
|
6587
6623
|
);
|
|
6588
|
-
const mobileAction = connected ? /* @__PURE__ */ (0,
|
|
6624
|
+
const mobileAction = connected ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6589
6625
|
Button,
|
|
6590
6626
|
{
|
|
6591
6627
|
variant: "tertiary",
|
|
6592
6628
|
size: "medium",
|
|
6593
6629
|
className: "!h-auto !px-0 !py-0 text-agg-primary hover:bg-transparent hover:text-agg-primary-hover",
|
|
6594
6630
|
onClick: onConnect,
|
|
6595
|
-
suffix: /* @__PURE__ */ (0,
|
|
6631
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ChevronRightIcon, { className: "h-4 w-4" }),
|
|
6596
6632
|
children: labels.onboarding.connectAccounts.connectAccount
|
|
6597
6633
|
}
|
|
6598
6634
|
);
|
|
6599
|
-
return /* @__PURE__ */ (0,
|
|
6635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
|
|
6600
6636
|
"div",
|
|
6601
6637
|
{
|
|
6602
6638
|
className: cn(
|
|
@@ -6604,23 +6640,23 @@ var VenueCard = ({
|
|
|
6604
6640
|
connected ? "bg-agg-success/5" : "bg-agg-secondary-hover hover:bg-agg-tertiary"
|
|
6605
6641
|
),
|
|
6606
6642
|
children: [
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6608
|
-
/* @__PURE__ */ (0,
|
|
6609
|
-
/* @__PURE__ */ (0,
|
|
6610
|
-
/* @__PURE__ */ (0,
|
|
6611
|
-
/* @__PURE__ */ (0,
|
|
6612
|
-
/* @__PURE__ */ (0,
|
|
6643
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "hidden sm:flex items-center justify-between", children: [
|
|
6644
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex items-center gap-5", children: [
|
|
6645
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "shrink-0", children: logos }),
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col gap-[2px]", children: [
|
|
6647
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "text-agg-sm text-agg-foreground", children: description })
|
|
6613
6649
|
] })
|
|
6614
6650
|
] }),
|
|
6615
|
-
/* @__PURE__ */ (0,
|
|
6651
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "shrink-0", children: action })
|
|
6616
6652
|
] }),
|
|
6617
|
-
/* @__PURE__ */ (0,
|
|
6618
|
-
/* @__PURE__ */ (0,
|
|
6619
|
-
/* @__PURE__ */ (0,
|
|
6620
|
-
/* @__PURE__ */ (0,
|
|
6653
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col gap-3 sm:hidden", children: [
|
|
6654
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "shrink-0", children: logos }),
|
|
6656
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
|
|
6621
6657
|
] }),
|
|
6622
|
-
/* @__PURE__ */ (0,
|
|
6623
|
-
/* @__PURE__ */ (0,
|
|
6658
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col items-start gap-2", children: [
|
|
6659
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
|
|
6624
6660
|
mobileAction
|
|
6625
6661
|
] })
|
|
6626
6662
|
] })
|
|
@@ -6637,13 +6673,13 @@ var ConnectAccountsStep = ({
|
|
|
6637
6673
|
}) => {
|
|
6638
6674
|
const labels = (0, import_hooks31.useLabels)();
|
|
6639
6675
|
const canContinue = connectedOnchain || connectedKalshi;
|
|
6640
|
-
return /* @__PURE__ */ (0,
|
|
6641
|
-
/* @__PURE__ */ (0,
|
|
6642
|
-
/* @__PURE__ */ (0,
|
|
6643
|
-
/* @__PURE__ */ (0,
|
|
6676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
6677
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
|
|
6678
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
6679
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6644
6680
|
VenueCard,
|
|
6645
6681
|
{
|
|
6646
|
-
logos: /* @__PURE__ */ (0,
|
|
6682
|
+
logos: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(OnchainVenueLogos, {}),
|
|
6647
6683
|
title: labels.onboarding.connectAccounts.onchainTitle,
|
|
6648
6684
|
mobileTitle: labels.onboarding.connectAccounts.onchainMobileTitle(
|
|
6649
6685
|
ONCHAIN_VENUES.length - 1
|
|
@@ -6654,10 +6690,10 @@ var ConnectAccountsStep = ({
|
|
|
6654
6690
|
connected: connectedOnchain
|
|
6655
6691
|
}
|
|
6656
6692
|
),
|
|
6657
|
-
/* @__PURE__ */ (0,
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6658
6694
|
VenueCard,
|
|
6659
6695
|
{
|
|
6660
|
-
logos: /* @__PURE__ */ (0,
|
|
6696
|
+
logos: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "sm:flex sm:w-14 sm:items-center sm:justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6661
6697
|
VenueLogo,
|
|
6662
6698
|
{
|
|
6663
6699
|
venue: import_sdk11.Venue.kalshi,
|
|
@@ -6675,7 +6711,7 @@ var ConnectAccountsStep = ({
|
|
|
6675
6711
|
}
|
|
6676
6712
|
)
|
|
6677
6713
|
] }),
|
|
6678
|
-
/* @__PURE__ */ (0,
|
|
6714
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6679
6715
|
Button,
|
|
6680
6716
|
{
|
|
6681
6717
|
variant: "primary",
|
|
@@ -6695,7 +6731,7 @@ var import_sdk12 = require("@agg-build/sdk");
|
|
|
6695
6731
|
var import_react13 = require("react");
|
|
6696
6732
|
var import_hooks32 = require("@agg-build/hooks");
|
|
6697
6733
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
|
|
6698
|
-
var
|
|
6734
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
6699
6735
|
var ConnectKalshiModal = ({
|
|
6700
6736
|
open,
|
|
6701
6737
|
onOpenChange,
|
|
@@ -6751,15 +6787,15 @@ var ConnectKalshiModal = ({
|
|
|
6751
6787
|
},
|
|
6752
6788
|
[onOpenChange]
|
|
6753
6789
|
);
|
|
6754
|
-
return /* @__PURE__ */ (0,
|
|
6790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
6755
6791
|
Modal.Container,
|
|
6756
6792
|
{
|
|
6757
6793
|
maxWidth: "600px",
|
|
6758
6794
|
"aria-label": labels.onboarding.connectKalshiModal.ariaLabel,
|
|
6759
6795
|
classNames: { container: "!rounded-agg-lg" },
|
|
6760
6796
|
children: [
|
|
6761
|
-
/* @__PURE__ */ (0,
|
|
6762
|
-
/* @__PURE__ */ (0,
|
|
6797
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Dialog2.Title, { className: "sr-only", children: labels.onboarding.connectKalshiModal.title }),
|
|
6798
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6763
6799
|
Modal.Header,
|
|
6764
6800
|
{
|
|
6765
6801
|
hideClose: false,
|
|
@@ -6770,8 +6806,8 @@ var ConnectKalshiModal = ({
|
|
|
6770
6806
|
}
|
|
6771
6807
|
}
|
|
6772
6808
|
),
|
|
6773
|
-
/* @__PURE__ */ (0,
|
|
6774
|
-
/* @__PURE__ */ (0,
|
|
6809
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
|
|
6810
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6775
6811
|
VenueLogo,
|
|
6776
6812
|
{
|
|
6777
6813
|
venue: import_sdk12.Venue.kalshi,
|
|
@@ -6780,54 +6816,54 @@ var ConnectKalshiModal = ({
|
|
|
6780
6816
|
className: "h-[60px] w-[60px]"
|
|
6781
6817
|
}
|
|
6782
6818
|
),
|
|
6783
|
-
/* @__PURE__ */ (0,
|
|
6784
|
-
/* @__PURE__ */ (0,
|
|
6785
|
-
/* @__PURE__ */ (0,
|
|
6819
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
|
|
6820
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
|
|
6821
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
|
|
6786
6822
|
] }),
|
|
6787
|
-
/* @__PURE__ */ (0,
|
|
6788
|
-
/* @__PURE__ */ (0,
|
|
6789
|
-
/* @__PURE__ */ (0,
|
|
6790
|
-
/* @__PURE__ */ (0,
|
|
6791
|
-
/* @__PURE__ */ (0,
|
|
6823
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
|
|
6824
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
|
|
6825
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
6826
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
|
|
6827
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
|
|
6792
6828
|
] }),
|
|
6793
|
-
/* @__PURE__ */ (0,
|
|
6794
|
-
/* @__PURE__ */ (0,
|
|
6795
|
-
/* @__PURE__ */ (0,
|
|
6829
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "space-y-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
6830
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
|
|
6831
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("p", { children: [
|
|
6796
6832
|
labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfilePrefix,
|
|
6797
6833
|
" ",
|
|
6798
|
-
/* @__PURE__ */ (0,
|
|
6834
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
|
|
6799
6835
|
labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfileSeparator,
|
|
6800
6836
|
" ",
|
|
6801
|
-
/* @__PURE__ */ (0,
|
|
6837
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: "text-agg-foreground underline", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileUrl })
|
|
6802
6838
|
] }),
|
|
6803
|
-
/* @__PURE__ */ (0,
|
|
6839
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("p", { children: [
|
|
6804
6840
|
labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeyPrefix,
|
|
6805
6841
|
" ",
|
|
6806
|
-
/* @__PURE__ */ (0,
|
|
6842
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
|
|
6807
6843
|
labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeySuffix
|
|
6808
6844
|
] }),
|
|
6809
|
-
/* @__PURE__ */ (0,
|
|
6845
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("p", { children: [
|
|
6810
6846
|
labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsPrefix,
|
|
6811
6847
|
" ",
|
|
6812
|
-
/* @__PURE__ */ (0,
|
|
6848
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
|
|
6813
6849
|
labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsSuffix
|
|
6814
6850
|
] }),
|
|
6815
|
-
/* @__PURE__ */ (0,
|
|
6851
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
|
|
6816
6852
|
] }),
|
|
6817
|
-
/* @__PURE__ */ (0,
|
|
6853
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
6818
6854
|
labels.onboarding.connectKalshiModal.stepOne.footerLineOne,
|
|
6819
|
-
/* @__PURE__ */ (0,
|
|
6855
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("br", {}),
|
|
6820
6856
|
labels.onboarding.connectKalshiModal.stepOne.footerLineTwo
|
|
6821
6857
|
] })
|
|
6822
6858
|
] }),
|
|
6823
|
-
/* @__PURE__ */ (0,
|
|
6824
|
-
/* @__PURE__ */ (0,
|
|
6825
|
-
/* @__PURE__ */ (0,
|
|
6826
|
-
/* @__PURE__ */ (0,
|
|
6859
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
|
|
6860
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
6861
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
|
|
6862
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
|
|
6827
6863
|
] }),
|
|
6828
|
-
/* @__PURE__ */ (0,
|
|
6829
|
-
/* @__PURE__ */ (0,
|
|
6830
|
-
/* @__PURE__ */ (0,
|
|
6864
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
|
|
6865
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
6866
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6831
6867
|
"label",
|
|
6832
6868
|
{
|
|
6833
6869
|
htmlFor: "kalshi-api-key-id",
|
|
@@ -6835,7 +6871,7 @@ var ConnectKalshiModal = ({
|
|
|
6835
6871
|
children: labels.onboarding.connectKalshiModal.stepTwo.apiKeyIdLabel
|
|
6836
6872
|
}
|
|
6837
6873
|
),
|
|
6838
|
-
/* @__PURE__ */ (0,
|
|
6874
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6839
6875
|
"input",
|
|
6840
6876
|
{
|
|
6841
6877
|
id: "kalshi-api-key-id",
|
|
@@ -6855,8 +6891,8 @@ var ConnectKalshiModal = ({
|
|
|
6855
6891
|
}
|
|
6856
6892
|
)
|
|
6857
6893
|
] }),
|
|
6858
|
-
/* @__PURE__ */ (0,
|
|
6859
|
-
/* @__PURE__ */ (0,
|
|
6894
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
6895
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6860
6896
|
"label",
|
|
6861
6897
|
{
|
|
6862
6898
|
htmlFor: "kalshi-private-key",
|
|
@@ -6864,7 +6900,7 @@ var ConnectKalshiModal = ({
|
|
|
6864
6900
|
children: labels.onboarding.connectKalshiModal.stepTwo.privateKeyLabel
|
|
6865
6901
|
}
|
|
6866
6902
|
),
|
|
6867
|
-
/* @__PURE__ */ (0,
|
|
6903
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6868
6904
|
"textarea",
|
|
6869
6905
|
{
|
|
6870
6906
|
id: "kalshi-private-key",
|
|
@@ -6886,42 +6922,42 @@ var ConnectKalshiModal = ({
|
|
|
6886
6922
|
] })
|
|
6887
6923
|
] })
|
|
6888
6924
|
] }),
|
|
6889
|
-
/* @__PURE__ */ (0,
|
|
6890
|
-
/* @__PURE__ */ (0,
|
|
6891
|
-
/* @__PURE__ */ (0,
|
|
6892
|
-
/* @__PURE__ */ (0,
|
|
6925
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
|
|
6926
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
|
|
6927
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
6928
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
6893
6929
|
"a",
|
|
6894
6930
|
{
|
|
6895
6931
|
href: "#",
|
|
6896
6932
|
className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
|
|
6897
6933
|
children: [
|
|
6898
|
-
/* @__PURE__ */ (0,
|
|
6934
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(DocumentIcon, { className: "h-4 w-4" }),
|
|
6899
6935
|
labels.onboarding.connectKalshiModal.help.docsLinkLabel
|
|
6900
6936
|
]
|
|
6901
6937
|
}
|
|
6902
6938
|
),
|
|
6903
|
-
/* @__PURE__ */ (0,
|
|
6904
|
-
/* @__PURE__ */ (0,
|
|
6939
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: "h-3 w-px bg-agg-separator" }),
|
|
6940
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
6905
6941
|
"a",
|
|
6906
6942
|
{
|
|
6907
6943
|
href: "#",
|
|
6908
6944
|
className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
|
|
6909
6945
|
children: [
|
|
6910
|
-
/* @__PURE__ */ (0,
|
|
6946
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(PlaySquareIcon, { className: "h-4 w-4" }),
|
|
6911
6947
|
labels.onboarding.connectKalshiModal.help.tutorialLinkLabel
|
|
6912
6948
|
]
|
|
6913
6949
|
}
|
|
6914
6950
|
)
|
|
6915
6951
|
] })
|
|
6916
6952
|
] }),
|
|
6917
|
-
/* @__PURE__ */ (0,
|
|
6918
|
-
error ? /* @__PURE__ */ (0,
|
|
6919
|
-
/* @__PURE__ */ (0,
|
|
6920
|
-
/* @__PURE__ */ (0,
|
|
6953
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex flex-col gap-5 items-center", children: [
|
|
6954
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
6955
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
|
|
6956
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
|
|
6921
6957
|
] }) : null,
|
|
6922
|
-
/* @__PURE__ */ (0,
|
|
6923
|
-
/* @__PURE__ */ (0,
|
|
6924
|
-
/* @__PURE__ */ (0,
|
|
6958
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsxs)("div", { className: "flex items-center gap-3 justify-center", children: [
|
|
6959
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, children: labels.onboarding.connectKalshiModal.actions.cancel }),
|
|
6960
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6925
6961
|
Button,
|
|
6926
6962
|
{
|
|
6927
6963
|
variant: "primary",
|
|
@@ -6945,7 +6981,7 @@ ConnectKalshiModal.displayName = "ConnectKalshiModal";
|
|
|
6945
6981
|
var import_react14 = require("react");
|
|
6946
6982
|
var import_hooks33 = require("@agg-build/hooks");
|
|
6947
6983
|
var Dialog3 = __toESM(require("@radix-ui/react-dialog"));
|
|
6948
|
-
var
|
|
6984
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
6949
6985
|
var ConnectOnchainModal = ({
|
|
6950
6986
|
open,
|
|
6951
6987
|
onOpenChange,
|
|
@@ -6982,15 +7018,15 @@ var ConnectOnchainModal = ({
|
|
|
6982
7018
|
},
|
|
6983
7019
|
[onOpenChange]
|
|
6984
7020
|
);
|
|
6985
|
-
return /* @__PURE__ */ (0,
|
|
7021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
|
|
6986
7022
|
Modal.Container,
|
|
6987
7023
|
{
|
|
6988
7024
|
maxWidth: "600px",
|
|
6989
7025
|
"aria-label": labels.onboarding.connectOnchainModal.ariaLabel,
|
|
6990
7026
|
classNames: { container: "!rounded-agg-lg" },
|
|
6991
7027
|
children: [
|
|
6992
|
-
/* @__PURE__ */ (0,
|
|
6993
|
-
/* @__PURE__ */ (0,
|
|
7028
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Dialog3.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
|
|
7029
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
6994
7030
|
Modal.Header,
|
|
6995
7031
|
{
|
|
6996
7032
|
hideClose: false,
|
|
@@ -7001,26 +7037,26 @@ var ConnectOnchainModal = ({
|
|
|
7001
7037
|
}
|
|
7002
7038
|
}
|
|
7003
7039
|
),
|
|
7004
|
-
/* @__PURE__ */ (0,
|
|
7005
|
-
/* @__PURE__ */ (0,
|
|
7006
|
-
/* @__PURE__ */ (0,
|
|
7007
|
-
/* @__PURE__ */ (0,
|
|
7040
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
|
|
7041
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
|
|
7042
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
|
|
7043
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
|
|
7008
7044
|
] }),
|
|
7009
|
-
/* @__PURE__ */ (0,
|
|
7010
|
-
/* @__PURE__ */ (0,
|
|
7011
|
-
/* @__PURE__ */ (0,
|
|
7012
|
-
index > 0 && /* @__PURE__ */ (0,
|
|
7013
|
-
/* @__PURE__ */ (0,
|
|
7014
|
-
/* @__PURE__ */ (0,
|
|
7045
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
|
|
7046
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
|
|
7047
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-3", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex items-center gap-[6px]", children: [
|
|
7048
|
+
index > 0 && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
|
|
7049
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(VenueLogo, { venue, size: "medium" }),
|
|
7050
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
|
|
7015
7051
|
] }, venue)) })
|
|
7016
7052
|
] }),
|
|
7017
|
-
/* @__PURE__ */ (0,
|
|
7018
|
-
/* @__PURE__ */ (0,
|
|
7019
|
-
error ? /* @__PURE__ */ (0,
|
|
7020
|
-
/* @__PURE__ */ (0,
|
|
7021
|
-
/* @__PURE__ */ (0,
|
|
7053
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex flex-col gap-6 items-center", children: [
|
|
7054
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex flex-col gap-3 items-center", children: [
|
|
7055
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7056
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
|
|
7057
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
|
|
7022
7058
|
] }) : null,
|
|
7023
|
-
/* @__PURE__ */ (0,
|
|
7059
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7024
7060
|
Button,
|
|
7025
7061
|
{
|
|
7026
7062
|
variant: "primary",
|
|
@@ -7031,7 +7067,7 @@ var ConnectOnchainModal = ({
|
|
|
7031
7067
|
}
|
|
7032
7068
|
)
|
|
7033
7069
|
] }),
|
|
7034
|
-
/* @__PURE__ */ (0,
|
|
7070
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7035
7071
|
Button,
|
|
7036
7072
|
{
|
|
7037
7073
|
variant: "tertiary",
|
|
@@ -7050,7 +7086,7 @@ var ConnectOnchainModal = ({
|
|
|
7050
7086
|
ConnectOnchainModal.displayName = "ConnectOnchainModal";
|
|
7051
7087
|
|
|
7052
7088
|
// src/onboarding/index.tsx
|
|
7053
|
-
var
|
|
7089
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
7054
7090
|
var OnboardingModal = ({
|
|
7055
7091
|
open,
|
|
7056
7092
|
onOpenChange,
|
|
@@ -7112,19 +7148,19 @@ var OnboardingModal = ({
|
|
|
7112
7148
|
}),
|
|
7113
7149
|
[onConnectKalshi]
|
|
7114
7150
|
);
|
|
7115
|
-
return /* @__PURE__ */ (0,
|
|
7116
|
-
/* @__PURE__ */ (0,
|
|
7151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
7152
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7117
7153
|
Modal.Container,
|
|
7118
7154
|
{
|
|
7119
7155
|
maxWidth: "600px",
|
|
7120
7156
|
"aria-label": resolvedTitle,
|
|
7121
7157
|
classNames: { container: "!rounded-agg-lg" },
|
|
7122
7158
|
children: [
|
|
7123
|
-
/* @__PURE__ */ (0,
|
|
7124
|
-
/* @__PURE__ */ (0,
|
|
7125
|
-
step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0,
|
|
7126
|
-
step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0,
|
|
7127
|
-
step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0,
|
|
7159
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Dialog4.Title, { className: "sr-only", children: resolvedTitle }),
|
|
7160
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
|
|
7161
|
+
step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
|
|
7162
|
+
step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ProfileSetupStep, { onContinue: handleProfileContinue }),
|
|
7163
|
+
step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7128
7164
|
ConnectAccountsStep,
|
|
7129
7165
|
{
|
|
7130
7166
|
onConnectOnchain: handleOpenOnchainModal,
|
|
@@ -7138,7 +7174,7 @@ var OnboardingModal = ({
|
|
|
7138
7174
|
]
|
|
7139
7175
|
}
|
|
7140
7176
|
) }),
|
|
7141
|
-
/* @__PURE__ */ (0,
|
|
7177
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7142
7178
|
ConnectOnchainModal,
|
|
7143
7179
|
{
|
|
7144
7180
|
open: onchainModalOpen,
|
|
@@ -7146,7 +7182,7 @@ var OnboardingModal = ({
|
|
|
7146
7182
|
onConnect: handleOnchainConnect
|
|
7147
7183
|
}
|
|
7148
7184
|
),
|
|
7149
|
-
/* @__PURE__ */ (0,
|
|
7185
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7150
7186
|
ConnectKalshiModal,
|
|
7151
7187
|
{
|
|
7152
7188
|
open: kalshiModalOpen,
|
|
@@ -7180,7 +7216,7 @@ var PROFILE_TAB_ITEMS = [
|
|
|
7180
7216
|
// src/profile/tabs/about-tab.tsx
|
|
7181
7217
|
var import_react16 = require("react");
|
|
7182
7218
|
var import_hooks35 = require("@agg-build/hooks");
|
|
7183
|
-
var
|
|
7219
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
7184
7220
|
var AboutTab = ({
|
|
7185
7221
|
avatarPreview,
|
|
7186
7222
|
onDeleteProfile: _onDeleteProfile,
|
|
@@ -7212,9 +7248,9 @@ var AboutTab = ({
|
|
|
7212
7248
|
);
|
|
7213
7249
|
const resolvedPreview = draftAvatarPreview != null ? draftAvatarPreview : avatarPreview;
|
|
7214
7250
|
const hasAvatarPreview = Boolean(resolvedPreview);
|
|
7215
|
-
return /* @__PURE__ */ (0,
|
|
7216
|
-
/* @__PURE__ */ (0,
|
|
7217
|
-
/* @__PURE__ */ (0,
|
|
7251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-profile-about flex flex-col gap-8", children: [
|
|
7252
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-profile-avatar-section flex w-full flex-col items-stretch sm:items-start", children: [
|
|
7253
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
|
|
7218
7254
|
"button",
|
|
7219
7255
|
{
|
|
7220
7256
|
type: "button",
|
|
@@ -7231,13 +7267,13 @@ var AboutTab = ({
|
|
|
7231
7267
|
),
|
|
7232
7268
|
"aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
|
|
7233
7269
|
children: [
|
|
7234
|
-
!hasAvatarPreview ? /* @__PURE__ */ (0,
|
|
7270
|
+
!hasAvatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7235
7271
|
"svg",
|
|
7236
7272
|
{
|
|
7237
7273
|
"aria-hidden": true,
|
|
7238
7274
|
viewBox: "0 0 80 80",
|
|
7239
7275
|
className: "pointer-events-none absolute inset-0 h-full w-full text-agg-separator group-hover:text-agg-muted-foreground",
|
|
7240
|
-
children: /* @__PURE__ */ (0,
|
|
7276
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7241
7277
|
"circle",
|
|
7242
7278
|
{
|
|
7243
7279
|
cx: "40",
|
|
@@ -7251,18 +7287,18 @@ var AboutTab = ({
|
|
|
7251
7287
|
)
|
|
7252
7288
|
}
|
|
7253
7289
|
) : null,
|
|
7254
|
-
resolvedPreview ? /* @__PURE__ */ (0,
|
|
7290
|
+
resolvedPreview ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7255
7291
|
RemoteImage,
|
|
7256
7292
|
{
|
|
7257
7293
|
src: resolvedPreview,
|
|
7258
7294
|
alt: labels.onboarding.profileSetup.profilePreviewAlt,
|
|
7259
7295
|
className: "h-full w-full object-cover"
|
|
7260
7296
|
}
|
|
7261
|
-
) : /* @__PURE__ */ (0,
|
|
7297
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Icon, { name: "profile", className: "h-7 w-7 text-agg-muted-foreground" })
|
|
7262
7298
|
]
|
|
7263
7299
|
}
|
|
7264
7300
|
),
|
|
7265
|
-
/* @__PURE__ */ (0,
|
|
7301
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7266
7302
|
"input",
|
|
7267
7303
|
{
|
|
7268
7304
|
ref: fileInputRef,
|
|
@@ -7274,8 +7310,8 @@ var AboutTab = ({
|
|
|
7274
7310
|
}
|
|
7275
7311
|
)
|
|
7276
7312
|
] }),
|
|
7277
|
-
/* @__PURE__ */ (0,
|
|
7278
|
-
/* @__PURE__ */ (0,
|
|
7313
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-form-section flex flex-col gap-2", children: [
|
|
7314
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7279
7315
|
"label",
|
|
7280
7316
|
{
|
|
7281
7317
|
htmlFor: "profile-username",
|
|
@@ -7283,7 +7319,7 @@ var AboutTab = ({
|
|
|
7283
7319
|
children: "Username"
|
|
7284
7320
|
}
|
|
7285
7321
|
),
|
|
7286
|
-
/* @__PURE__ */ (0,
|
|
7322
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7287
7323
|
"input",
|
|
7288
7324
|
{
|
|
7289
7325
|
id: "profile-username",
|
|
@@ -7312,9 +7348,9 @@ AboutTab.displayName = "AboutTab";
|
|
|
7312
7348
|
// src/profile/tabs/accounts-wallets-tab.tsx
|
|
7313
7349
|
var import_react17 = require("react");
|
|
7314
7350
|
var import_hooks36 = require("@agg-build/hooks");
|
|
7315
|
-
var
|
|
7316
|
-
var SectionTitle = ({ children }) => /* @__PURE__ */ (0,
|
|
7317
|
-
var AccountRow = ({ children, className }) => /* @__PURE__ */ (0,
|
|
7351
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
7352
|
+
var SectionTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
|
|
7353
|
+
var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7318
7354
|
"div",
|
|
7319
7355
|
{
|
|
7320
7356
|
className: cn(
|
|
@@ -7326,7 +7362,7 @@ var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
7326
7362
|
children
|
|
7327
7363
|
}
|
|
7328
7364
|
);
|
|
7329
|
-
var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0,
|
|
7365
|
+
var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7330
7366
|
"button",
|
|
7331
7367
|
{
|
|
7332
7368
|
type: "button",
|
|
@@ -7335,7 +7371,7 @@ var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime1
|
|
|
7335
7371
|
children: "Connect"
|
|
7336
7372
|
}
|
|
7337
7373
|
);
|
|
7338
|
-
var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0,
|
|
7374
|
+
var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7339
7375
|
"button",
|
|
7340
7376
|
{
|
|
7341
7377
|
type: "button",
|
|
@@ -7378,14 +7414,14 @@ var VerifyIdentityButton = ({ onError }) => {
|
|
|
7378
7414
|
setIsInitiating(true);
|
|
7379
7415
|
setNeedsDepositAddress(true);
|
|
7380
7416
|
}, []);
|
|
7381
|
-
return /* @__PURE__ */ (0,
|
|
7417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7382
7418
|
"button",
|
|
7383
7419
|
{
|
|
7384
7420
|
type: "button",
|
|
7385
7421
|
disabled: isInitiating,
|
|
7386
7422
|
onClick: handleClick,
|
|
7387
7423
|
className: "shrink-0 cursor-pointer text-agg-sm font-agg-bold leading-agg-5 text-agg-primary whitespace-nowrap disabled:cursor-not-allowed disabled:opacity-60",
|
|
7388
|
-
children: isInitiating ? /* @__PURE__ */ (0,
|
|
7424
|
+
children: isInitiating ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }) : "Verify Identity"
|
|
7389
7425
|
}
|
|
7390
7426
|
);
|
|
7391
7427
|
};
|
|
@@ -7393,26 +7429,26 @@ var TradingAccessSection = ({
|
|
|
7393
7429
|
venueAccounts,
|
|
7394
7430
|
onKycError
|
|
7395
7431
|
}) => {
|
|
7396
|
-
return /* @__PURE__ */ (0,
|
|
7397
|
-
/* @__PURE__ */ (0,
|
|
7398
|
-
/* @__PURE__ */ (0,
|
|
7432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-trading-access-section flex flex-col gap-3", children: [
|
|
7433
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(SectionTitle, { children: "Trading access" }),
|
|
7434
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "flex flex-col gap-2", children: TRADING_ACCESS_VENUES.map((venue) => {
|
|
7399
7435
|
var _a;
|
|
7400
7436
|
const venueAccount = venueAccounts == null ? void 0 : venueAccounts.find((va) => va.venue === venue);
|
|
7401
7437
|
const isKalshi = venue === "kalshi";
|
|
7402
7438
|
const isVerified = (venueAccount == null ? void 0 : venueAccount.kycStatus) === "verified";
|
|
7403
7439
|
const displayName = (_a = venueLogoLabels[venue]) != null ? _a : venue;
|
|
7404
|
-
return /* @__PURE__ */ (0,
|
|
7405
|
-
/* @__PURE__ */ (0,
|
|
7406
|
-
/* @__PURE__ */ (0,
|
|
7407
|
-
/* @__PURE__ */ (0,
|
|
7440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(AccountRow, { children: [
|
|
7441
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
7442
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(VenueLogo, { venue, size: "small" }),
|
|
7443
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: displayName })
|
|
7408
7444
|
] }),
|
|
7409
|
-
isKalshi && !isVerified ? /* @__PURE__ */ (0,
|
|
7410
|
-
/* @__PURE__ */ (0,
|
|
7411
|
-
/* @__PURE__ */ (0,
|
|
7412
|
-
] }) : isKalshi && isVerified ? /* @__PURE__ */ (0,
|
|
7413
|
-
/* @__PURE__ */ (0,
|
|
7414
|
-
/* @__PURE__ */ (0,
|
|
7415
|
-
/* @__PURE__ */ (0,
|
|
7445
|
+
isKalshi && !isVerified ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
7446
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground whitespace-nowrap", children: "KYC required" }),
|
|
7447
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(VerifyIdentityButton, { onError: onKycError })
|
|
7448
|
+
] }) : isKalshi && isVerified ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-4", children: [
|
|
7449
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground whitespace-nowrap", children: "Verified" }),
|
|
7450
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7451
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
7416
7452
|
Icon,
|
|
7417
7453
|
{
|
|
7418
7454
|
name: "check-badge",
|
|
@@ -7420,11 +7456,11 @@ var TradingAccessSection = ({
|
|
|
7420
7456
|
color: "var(--agg-color-primary, #536dfe)"
|
|
7421
7457
|
}
|
|
7422
7458
|
),
|
|
7423
|
-
/* @__PURE__ */ (0,
|
|
7459
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-foreground whitespace-nowrap", children: "Available" })
|
|
7424
7460
|
] })
|
|
7425
|
-
] }) : /* @__PURE__ */ (0,
|
|
7426
|
-
/* @__PURE__ */ (0,
|
|
7427
|
-
/* @__PURE__ */ (0,
|
|
7461
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
7462
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Icon, { name: "check-badge", size: "small", color: "var(--agg-color-primary, #536dfe)" }),
|
|
7463
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-foreground whitespace-nowrap", children: "Available" })
|
|
7428
7464
|
] })
|
|
7429
7465
|
] }, venue);
|
|
7430
7466
|
}) })
|
|
@@ -7452,37 +7488,37 @@ var AccountsWalletsTab = ({
|
|
|
7452
7488
|
const twitter = socialAccounts == null ? void 0 : socialAccounts.twitter;
|
|
7453
7489
|
const google = socialAccounts == null ? void 0 : socialAccounts.google;
|
|
7454
7490
|
const apple = socialAccounts == null ? void 0 : socialAccounts.apple;
|
|
7455
|
-
return /* @__PURE__ */ (0,
|
|
7456
|
-
/* @__PURE__ */ (0,
|
|
7457
|
-
/* @__PURE__ */ (0,
|
|
7458
|
-
/* @__PURE__ */ (0,
|
|
7459
|
-
/* @__PURE__ */ (0,
|
|
7460
|
-
/* @__PURE__ */ (0,
|
|
7461
|
-
/* @__PURE__ */ (0,
|
|
7462
|
-
/* @__PURE__ */ (0,
|
|
7463
|
-
/* @__PURE__ */ (0,
|
|
7491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-accounts-wallets-tab flex flex-col gap-8", children: [
|
|
7492
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(TradingAccessSection, { venueAccounts, onKycError }),
|
|
7493
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-social-accounts-section flex flex-col gap-3", children: [
|
|
7494
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(SectionTitle, { children: "Social Accounts" }),
|
|
7495
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-social-accounts-list flex flex-col gap-2", children: [
|
|
7496
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(AccountRow, { className: "agg-social-account-row", children: [
|
|
7497
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
7498
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Icon, { name: "google", size: "small", color: "currentColor" }) }),
|
|
7499
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Google" })
|
|
7464
7500
|
] }),
|
|
7465
|
-
(google == null ? void 0 : google.connected) ? /* @__PURE__ */ (0,
|
|
7501
|
+
(google == null ? void 0 : google.connected) ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DisconnectTextButton, { onClick: onDisconnectGoogle }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ConnectTextButton, { onClick: onConnectGoogle })
|
|
7466
7502
|
] }),
|
|
7467
|
-
/* @__PURE__ */ (0,
|
|
7468
|
-
/* @__PURE__ */ (0,
|
|
7469
|
-
/* @__PURE__ */ (0,
|
|
7470
|
-
/* @__PURE__ */ (0,
|
|
7503
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(AccountRow, { className: "agg-social-account-row", children: [
|
|
7504
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
7505
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Icon, { name: "apple", size: "small", color: "currentColor" }) }),
|
|
7506
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Apple" })
|
|
7471
7507
|
] }),
|
|
7472
|
-
(apple == null ? void 0 : apple.connected) ? /* @__PURE__ */ (0,
|
|
7508
|
+
(apple == null ? void 0 : apple.connected) ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DisconnectTextButton, { onClick: onDisconnectApple }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ConnectTextButton, { onClick: onConnectApple })
|
|
7473
7509
|
] }),
|
|
7474
|
-
/* @__PURE__ */ (0,
|
|
7475
|
-
/* @__PURE__ */ (0,
|
|
7476
|
-
/* @__PURE__ */ (0,
|
|
7477
|
-
/* @__PURE__ */ (0,
|
|
7510
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(AccountRow, { className: "agg-social-account-row", children: [
|
|
7511
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
7512
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Icon, { name: "twitter", size: "small", color: "currentColor" }) }),
|
|
7513
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "X (Twitter)" })
|
|
7478
7514
|
] }),
|
|
7479
|
-
(twitter == null ? void 0 : twitter.connected) ? /* @__PURE__ */ (0,
|
|
7515
|
+
(twitter == null ? void 0 : twitter.connected) ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DisconnectTextButton, { onClick: onDisconnectTwitter }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ConnectTextButton, { onClick: onConnectTwitter })
|
|
7480
7516
|
] })
|
|
7481
7517
|
] })
|
|
7482
7518
|
] }),
|
|
7483
|
-
/* @__PURE__ */ (0,
|
|
7484
|
-
/* @__PURE__ */ (0,
|
|
7485
|
-
/* @__PURE__ */ (0,
|
|
7519
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
7520
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(SectionTitle, { children: "Email Address" }),
|
|
7521
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
|
|
7486
7522
|
"button",
|
|
7487
7523
|
{
|
|
7488
7524
|
type: "button",
|
|
@@ -7494,11 +7530,11 @@ var AccountsWalletsTab = ({
|
|
|
7494
7530
|
"cursor-pointer hover:bg-agg-secondary-hover"
|
|
7495
7531
|
),
|
|
7496
7532
|
children: [
|
|
7497
|
-
/* @__PURE__ */ (0,
|
|
7498
|
-
/* @__PURE__ */ (0,
|
|
7499
|
-
/* @__PURE__ */ (0,
|
|
7533
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
7534
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Icon, { name: "email", size: "small", color: "currentColor" }) }),
|
|
7535
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: email != null ? email : "Connect email" })
|
|
7500
7536
|
] }),
|
|
7501
|
-
/* @__PURE__ */ (0,
|
|
7537
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Icon, { name: "chevron-right", size: "small", color: "currentColor" })
|
|
7502
7538
|
]
|
|
7503
7539
|
}
|
|
7504
7540
|
)
|
|
@@ -7508,7 +7544,7 @@ var AccountsWalletsTab = ({
|
|
|
7508
7544
|
AccountsWalletsTab.displayName = "AccountsWalletsTab";
|
|
7509
7545
|
|
|
7510
7546
|
// src/profile/index.tsx
|
|
7511
|
-
var
|
|
7547
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
7512
7548
|
var EVM_WALLET_VENUES = [import_sdk13.Venue.polymarket, import_sdk13.Venue.predict, import_sdk13.Venue.opinion];
|
|
7513
7549
|
var ProfileModal = ({
|
|
7514
7550
|
open,
|
|
@@ -7821,7 +7857,7 @@ var ProfileModal = ({
|
|
|
7821
7857
|
}),
|
|
7822
7858
|
[client, exchanges, onDisconnectExchangeProp]
|
|
7823
7859
|
);
|
|
7824
|
-
return /* @__PURE__ */ (0,
|
|
7860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
7825
7861
|
Modal.Container,
|
|
7826
7862
|
{
|
|
7827
7863
|
maxWidth: "800px",
|
|
@@ -7830,12 +7866,12 @@ var ProfileModal = ({
|
|
|
7830
7866
|
container: cn("agg-profile-modal", "min-h-[37.5rem]")
|
|
7831
7867
|
},
|
|
7832
7868
|
children: [
|
|
7833
|
-
/* @__PURE__ */ (0,
|
|
7834
|
-
/* @__PURE__ */ (0,
|
|
7835
|
-
/* @__PURE__ */ (0,
|
|
7836
|
-
/* @__PURE__ */ (0,
|
|
7869
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Modal.Header, { title: "Edit Profile", classNames: { root: "agg-profile-modal-header" } }),
|
|
7870
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Modal.Body, { classNames: { root: cn("agg-profile-modal-body", "overflow-x-visible") }, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "agg-profile-layout flex flex-col sm:flex-row sm:gap-10", children: [
|
|
7871
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "shrink-0", children: [
|
|
7872
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: "agg-profile-tabs mb-6 flex gap-2 sm:hidden", children: PROFILE_TAB_ITEMS.map((tab) => {
|
|
7837
7873
|
const isActive = activeTab === tab.value;
|
|
7838
|
-
return /* @__PURE__ */ (0,
|
|
7874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
7839
7875
|
"button",
|
|
7840
7876
|
{
|
|
7841
7877
|
type: "button",
|
|
@@ -7849,14 +7885,14 @@ var ProfileModal = ({
|
|
|
7849
7885
|
isActive ? "font-agg-normal text-agg-foreground bg-agg-secondary-hover border-agg-primary" : "font-agg-normal text-agg-foreground border-transparent"
|
|
7850
7886
|
),
|
|
7851
7887
|
children: [
|
|
7852
|
-
/* @__PURE__ */ (0,
|
|
7853
|
-
/* @__PURE__ */ (0,
|
|
7888
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
|
|
7889
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { className: "whitespace-nowrap", children: tab.label })
|
|
7854
7890
|
]
|
|
7855
7891
|
},
|
|
7856
7892
|
tab.value
|
|
7857
7893
|
);
|
|
7858
7894
|
}) }),
|
|
7859
|
-
/* @__PURE__ */ (0,
|
|
7895
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7860
7896
|
"nav",
|
|
7861
7897
|
{
|
|
7862
7898
|
className: cn(
|
|
@@ -7872,7 +7908,7 @@ var ProfileModal = ({
|
|
|
7872
7908
|
"aria-label": "Profile sections",
|
|
7873
7909
|
children: PROFILE_TAB_ITEMS.map((tab) => {
|
|
7874
7910
|
const isActive = activeTab === tab.value;
|
|
7875
|
-
return /* @__PURE__ */ (0,
|
|
7911
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
|
|
7876
7912
|
"button",
|
|
7877
7913
|
{
|
|
7878
7914
|
type: "button",
|
|
@@ -7888,9 +7924,9 @@ var ProfileModal = ({
|
|
|
7888
7924
|
isActive ? "font-agg-normal text-agg-foreground bg-agg-secondary-hover" : "font-agg-normal text-agg-foreground"
|
|
7889
7925
|
),
|
|
7890
7926
|
children: [
|
|
7891
|
-
isActive ? /* @__PURE__ */ (0,
|
|
7892
|
-
/* @__PURE__ */ (0,
|
|
7893
|
-
/* @__PURE__ */ (0,
|
|
7927
|
+
isActive ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
|
|
7928
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
|
|
7929
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)("span", { className: "shrink-0 whitespace-nowrap", children: tab.label })
|
|
7894
7930
|
]
|
|
7895
7931
|
},
|
|
7896
7932
|
tab.value
|
|
@@ -7899,8 +7935,8 @@ var ProfileModal = ({
|
|
|
7899
7935
|
}
|
|
7900
7936
|
)
|
|
7901
7937
|
] }),
|
|
7902
|
-
/* @__PURE__ */ (0,
|
|
7903
|
-
activeTab === PROFILE_TAB_KEYS.ABOUT ? /* @__PURE__ */ (0,
|
|
7938
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "agg-profile-content min-w-0 flex-1", children: [
|
|
7939
|
+
activeTab === PROFILE_TAB_KEYS.ABOUT ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7904
7940
|
AboutTab,
|
|
7905
7941
|
{
|
|
7906
7942
|
username: username != null ? username : user == null ? void 0 : user.username,
|
|
@@ -7914,7 +7950,7 @@ var ProfileModal = ({
|
|
|
7914
7950
|
avatarError: avatarTypeError
|
|
7915
7951
|
}
|
|
7916
7952
|
) : null,
|
|
7917
|
-
activeTab === PROFILE_TAB_KEYS.ACCOUNTS_WALLETS ? /* @__PURE__ */ (0,
|
|
7953
|
+
activeTab === PROFILE_TAB_KEYS.ACCOUNTS_WALLETS ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7918
7954
|
AccountsWalletsTab,
|
|
7919
7955
|
{
|
|
7920
7956
|
exchanges: resolvedExchanges,
|
|
@@ -7944,9 +7980,9 @@ var ProfileModal = ({
|
|
|
7944
7980
|
) : null
|
|
7945
7981
|
] })
|
|
7946
7982
|
] }) }),
|
|
7947
|
-
/* @__PURE__ */ (0,
|
|
7948
|
-
/* @__PURE__ */ (0,
|
|
7949
|
-
/* @__PURE__ */ (0,
|
|
7983
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(Modal.Footer, { classNames: { root: "agg-profile-modal-footer" }, children: [
|
|
7984
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, className: "min-w-[120px]", children: "Cancel" }),
|
|
7985
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7950
7986
|
Button,
|
|
7951
7987
|
{
|
|
7952
7988
|
variant: "primary",
|
|
@@ -7967,7 +8003,7 @@ ProfileModal.displayName = "ProfileModal";
|
|
|
7967
8003
|
// src/geo-block-modal/index.tsx
|
|
7968
8004
|
var import_hooks38 = require("@agg-build/hooks");
|
|
7969
8005
|
var import_react19 = require("react");
|
|
7970
|
-
var
|
|
8006
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7971
8007
|
var GeoBlockModal = ({
|
|
7972
8008
|
open,
|
|
7973
8009
|
onOpenChange,
|
|
@@ -7979,32 +8015,32 @@ var GeoBlockModal = ({
|
|
|
7979
8015
|
onConfirm == null ? void 0 : onConfirm();
|
|
7980
8016
|
onOpenChange(false);
|
|
7981
8017
|
}, [onConfirm, onOpenChange]);
|
|
7982
|
-
return /* @__PURE__ */ (0,
|
|
8018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
7983
8019
|
Modal,
|
|
7984
8020
|
{
|
|
7985
8021
|
open,
|
|
7986
8022
|
onOpenChange,
|
|
7987
8023
|
"aria-label": labels.trading.geoBlockModalAriaLabel,
|
|
7988
|
-
children: /* @__PURE__ */ (0,
|
|
8024
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
7989
8025
|
Modal.Container,
|
|
7990
8026
|
{
|
|
7991
8027
|
maxWidth: "480px",
|
|
7992
8028
|
classNames: { container: cn("!rounded-agg-2xl", classNames == null ? void 0 : classNames.container) },
|
|
7993
8029
|
children: [
|
|
7994
|
-
/* @__PURE__ */ (0,
|
|
7995
|
-
/* @__PURE__ */ (0,
|
|
7996
|
-
/* @__PURE__ */ (0,
|
|
8030
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Modal.Header, { title: "", hideBorder: true, classNames: { container: "px-8 pt-8 pb-0" } }),
|
|
8031
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Modal.Body, { classNames: { root: cn("!px-10 !pb-12 !pt-0", classNames == null ? void 0 : classNames.body) }, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
|
|
8032
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
7997
8033
|
Icon,
|
|
7998
8034
|
{
|
|
7999
8035
|
name: "internet-security",
|
|
8000
8036
|
className: "h-[60px] w-[60px] text-agg-muted-foreground"
|
|
8001
8037
|
}
|
|
8002
8038
|
),
|
|
8003
|
-
/* @__PURE__ */ (0,
|
|
8004
|
-
/* @__PURE__ */ (0,
|
|
8005
|
-
/* @__PURE__ */ (0,
|
|
8039
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
8040
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("h2", { className: "text-agg-2xl font-agg-bold leading-agg-8 text-agg-foreground", children: labels.trading.geoBlockModalTitle }),
|
|
8041
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "text-agg-base font-agg-normal leading-agg-6 text-agg-foreground", children: labels.trading.geoBlockModalDescription })
|
|
8006
8042
|
] }),
|
|
8007
|
-
/* @__PURE__ */ (0,
|
|
8043
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
8008
8044
|
Button,
|
|
8009
8045
|
{
|
|
8010
8046
|
variant: "secondary",
|
|
@@ -8025,7 +8061,7 @@ GeoBlockModal.displayName = "GeoBlockModal";
|
|
|
8025
8061
|
|
|
8026
8062
|
// src/geo-block-banner/index.tsx
|
|
8027
8063
|
var import_hooks39 = require("@agg-build/hooks");
|
|
8028
|
-
var
|
|
8064
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
8029
8065
|
var GeoBlockBanner = ({
|
|
8030
8066
|
venue,
|
|
8031
8067
|
termsUrl = AGG_TERMS_OF_SERVICE_URL,
|
|
@@ -8033,18 +8069,18 @@ var GeoBlockBanner = ({
|
|
|
8033
8069
|
}) => {
|
|
8034
8070
|
const labels = (0, import_hooks39.useLabels)();
|
|
8035
8071
|
const message = venue ? labels.trading.geoBlockVenueMessage(venue) : labels.trading.geoBlockGenericMessage;
|
|
8036
|
-
return /* @__PURE__ */ (0,
|
|
8072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
|
|
8037
8073
|
"div",
|
|
8038
8074
|
{
|
|
8039
|
-
className: cn("flex items-center gap-5 rounded-agg-
|
|
8075
|
+
className: cn("flex items-center gap-5 rounded-agg-lg bg-agg-secondary-hover p-3", className),
|
|
8040
8076
|
role: "status",
|
|
8041
8077
|
children: [
|
|
8042
|
-
/* @__PURE__ */ (0,
|
|
8078
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("p", { className: "min-w-0 flex-1 text-agg-xs leading-agg-4 text-agg-foreground", children: [
|
|
8043
8079
|
message,
|
|
8044
|
-
/* @__PURE__ */ (0,
|
|
8080
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)("a", { href: termsUrl, className: "underline", target: "_blank", rel: "noreferrer noopener", children: labels.trading.geoBlockTermsLink }),
|
|
8045
8081
|
labels.trading.geoBlockMessageSuffix
|
|
8046
8082
|
] }),
|
|
8047
|
-
/* @__PURE__ */ (0,
|
|
8083
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Icon, { name: "internet-security", className: "h-6 w-6 shrink-0 text-agg-muted-foreground" })
|
|
8048
8084
|
]
|
|
8049
8085
|
}
|
|
8050
8086
|
);
|