@agg-market/ui 7.0.0 → 9.0.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-MUB7NYWZ.mjs → chunk-3G7C6WEC.mjs} +3453 -990
- package/dist/{chunk-KQKLLL4D.mjs → chunk-3U4VHAP6.mjs} +8 -11
- package/dist/{chunk-6I474QXG.mjs → chunk-6CRY27SQ.mjs} +92 -65
- package/dist/{chunk-L5U7RGJV.mjs → chunk-HJ4UPYM7.mjs} +22 -23
- package/dist/{chunk-AVHMI47G.mjs → chunk-N7U7QCSB.mjs} +5 -6
- package/dist/events.js +2904 -2756
- package/dist/events.mjs +2 -4
- package/dist/index.js +1594 -1438
- package/dist/index.mjs +26 -32
- package/dist/modals.js +821 -687
- package/dist/modals.mjs +2 -3
- package/dist/pages.js +2145 -1993
- package/dist/pages.mjs +4 -7
- package/dist/primitives.js +417 -293
- package/dist/primitives.mjs +22 -28
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/trading.js +564 -451
- package/dist/trading.mjs +2 -4
- package/dist/types/events/item/event-list-item.types.d.mts +5 -2
- package/dist/types/events/item/event-list-item.types.d.ts +5 -2
- package/dist/types/events/item/event-list-item.utils.d.mts +5 -5
- package/dist/types/events/item/event-list-item.utils.d.ts +5 -5
- package/dist/types/events/item/index.d.mts +1 -1
- package/dist/types/events/item/index.d.ts +1 -1
- package/dist/types/events/item-details/event-list-item-details.types.d.mts +4 -3
- package/dist/types/events/item-details/event-list-item-details.types.d.ts +4 -3
- package/dist/types/events/list/event-list.types.d.mts +4 -4
- package/dist/types/events/list/event-list.types.d.ts +4 -4
- package/dist/types/events/list/event-list.utils.d.mts +5 -5
- package/dist/types/events/list/event-list.utils.d.ts +5 -5
- package/dist/types/events/market-details/market-details.types.d.mts +5 -3
- package/dist/types/events/market-details/market-details.types.d.ts +5 -3
- package/dist/types/events/market-details/market-details.utils.d.mts +16 -5
- package/dist/types/events/market-details/market-details.utils.d.ts +16 -5
- package/dist/types/onramp/index.d.mts +6 -0
- package/dist/types/onramp/index.d.ts +6 -0
- package/dist/types/onramp/onramp-modal.constants.d.mts +9 -0
- package/dist/types/onramp/onramp-modal.constants.d.ts +9 -0
- package/dist/types/onramp/onramp-modal.types.d.mts +64 -0
- package/dist/types/onramp/onramp-modal.types.d.ts +64 -0
- package/dist/types/onramp/steps/quote-card.d.mts +8 -0
- package/dist/types/onramp/steps/quote-card.d.ts +8 -0
- package/dist/types/onramp/steps/quote-form.d.mts +12 -0
- package/dist/types/onramp/steps/quote-form.d.ts +12 -0
- package/dist/types/onramp/steps/quote-selection.d.mts +14 -0
- package/dist/types/onramp/steps/quote-selection.d.ts +14 -0
- package/dist/types/onramp/steps/widget.d.mts +7 -0
- package/dist/types/onramp/steps/widget.d.ts +7 -0
- package/dist/types/pages/event-market/event-market.types.d.mts +2 -2
- package/dist/types/pages/event-market/event-market.types.d.ts +2 -2
- package/dist/types/primitives/chart/index.d.mts +10 -1
- package/dist/types/primitives/chart/index.d.ts +10 -1
- 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/image.d.mts +5 -0
- package/dist/types/primitives/icon/svg/image.d.ts +5 -0
- package/dist/types/primitives/index.d.mts +1 -0
- package/dist/types/primitives/index.d.ts +1 -0
- package/dist/types/primitives/remote-image/index.d.mts +6 -0
- package/dist/types/primitives/remote-image/index.d.ts +6 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.mts +4 -0
- package/dist/types/primitives/remote-image/remote-image.constants.d.ts +4 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.mts +16 -0
- package/dist/types/primitives/remote-image/remote-image.types.d.ts +16 -0
- package/dist/types/trading/types.d.mts +2 -2
- package/dist/types/trading/types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-EEQPPN7N.mjs +0 -214
- package/dist/chunk-EERL6BZF.mjs +0 -997
- package/dist/chunk-OAJBTVZT.mjs +0 -119
- package/dist/chunk-OVQVAUAI.mjs +0 -420
- package/dist/chunk-ZYUJ7YEJ.mjs +0 -645
package/dist/modals.js
CHANGED
|
@@ -92,7 +92,7 @@ __export(modals_exports, {
|
|
|
92
92
|
module.exports = __toCommonJS(modals_exports);
|
|
93
93
|
|
|
94
94
|
// src/deposit/index.tsx
|
|
95
|
-
var
|
|
95
|
+
var import_react5 = require("react");
|
|
96
96
|
|
|
97
97
|
// src/primitives/modal/index.tsx
|
|
98
98
|
var Dialog = __toESM(require("@radix-ui/react-dialog"));
|
|
@@ -793,48 +793,29 @@ var Button = (_a) => {
|
|
|
793
793
|
Button.displayName = "Button";
|
|
794
794
|
|
|
795
795
|
// src/primitives/venue-logo/index.tsx
|
|
796
|
+
var import_hooks4 = require("@agg-market/hooks");
|
|
797
|
+
|
|
798
|
+
// src/primitives/remote-image/index.tsx
|
|
799
|
+
var import_react = require("react");
|
|
800
|
+
|
|
801
|
+
// src/primitives/skeleton/skeleton-block.tsx
|
|
796
802
|
var import_hooks3 = require("@agg-market/hooks");
|
|
797
803
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
798
|
-
var
|
|
799
|
-
|
|
800
|
-
variant = "icon",
|
|
801
|
-
isColor = true,
|
|
802
|
-
isMonochromatic = false,
|
|
803
|
-
color,
|
|
804
|
-
size = "medium",
|
|
805
|
-
className,
|
|
806
|
-
ariaLabel,
|
|
807
|
-
title
|
|
808
|
-
}) => {
|
|
809
|
-
var _a;
|
|
810
|
-
const labels = (0, import_hooks3.useLabels)();
|
|
811
|
-
const sizeClass = sizeClasses[size];
|
|
812
|
-
const resolvedLabel = (_a = ariaLabel != null ? ariaLabel : labels.venues[venue]) != null ? _a : venueLogoLabels[venue];
|
|
813
|
-
if (variant === "logo") {
|
|
814
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
815
|
-
"img",
|
|
816
|
-
{
|
|
817
|
-
src: venueLogoUrlRegistry[venue],
|
|
818
|
-
alt: resolvedLabel,
|
|
819
|
-
title,
|
|
820
|
-
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
821
|
-
}
|
|
822
|
-
);
|
|
823
|
-
}
|
|
824
|
-
const Component = venueLogoRegistry[venue];
|
|
825
|
-
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
804
|
+
var SkeletonBlock = ({ className }) => {
|
|
805
|
+
const { enableAnimations } = (0, import_hooks3.useSdkUiConfig)();
|
|
826
806
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
827
|
-
|
|
807
|
+
"div",
|
|
828
808
|
{
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
809
|
+
"aria-hidden": true,
|
|
810
|
+
className: cn(
|
|
811
|
+
"bg-agg-separator",
|
|
812
|
+
getMotionClassName(enableAnimations, "animate-pulse"),
|
|
813
|
+
className
|
|
814
|
+
)
|
|
834
815
|
}
|
|
835
816
|
);
|
|
836
817
|
};
|
|
837
|
-
|
|
818
|
+
SkeletonBlock.displayName = "SkeletonBlock";
|
|
838
819
|
|
|
839
820
|
// src/primitives/icon/svg/apple.tsx
|
|
840
821
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
@@ -1579,35 +1560,61 @@ var GoogleIcon = (_a) => {
|
|
|
1579
1560
|
};
|
|
1580
1561
|
GoogleIcon.displayName = "GoogleIcon";
|
|
1581
1562
|
|
|
1582
|
-
// src/primitives/icon/svg/
|
|
1563
|
+
// src/primitives/icon/svg/image.tsx
|
|
1583
1564
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1584
|
-
var
|
|
1565
|
+
var ImageIcon = (_a) => {
|
|
1585
1566
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1586
1567
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1587
1568
|
"svg",
|
|
1588
1569
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1589
|
-
viewBox: "0 0
|
|
1570
|
+
viewBox: "0 0 32 32",
|
|
1590
1571
|
className,
|
|
1591
1572
|
fill: "none"
|
|
1592
1573
|
}, getIconA11yProps(title)), props), {
|
|
1593
1574
|
children: [
|
|
1594
1575
|
title ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("title", { children: title }) : null,
|
|
1595
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.
|
|
1596
|
-
|
|
1576
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1577
|
+
"path",
|
|
1578
|
+
{
|
|
1579
|
+
d: "M30 2.497h-28c-1.099 0-2 0.901-2 2v23.006c0 1.099 0.9 2 2 2h28c1.099 0 2-0.901 2-2v-23.006c0-1.099-0.901-2-2-2zM30 27.503l-28-0v-5.892l8.027-7.779 8.275 8.265c0.341 0.414 0.948 0.361 1.379 0.035l3.652-3.306 6.587 6.762c0.025 0.025 0.053 0.044 0.080 0.065v1.85zM30 22.806l-5.876-6.013c-0.357-0.352-0.915-0.387-1.311-0.086l-3.768 3.282-8.28-8.19c-0.177-0.214-0.432-0.344-0.709-0.363-0.275-0.010-0.547 0.080-0.749 0.27l-7.309 7.112v-14.322h28v18.309zM23 12.504c1.102 0 1.995-0.894 1.995-1.995s-0.892-1.995-1.995-1.995-1.995 0.894-1.995 1.995c0 1.101 0.892 1.995 1.995 1.995z",
|
|
1580
|
+
fill: "currentColor"
|
|
1581
|
+
}
|
|
1582
|
+
)
|
|
1583
|
+
]
|
|
1584
|
+
})
|
|
1585
|
+
);
|
|
1586
|
+
};
|
|
1587
|
+
ImageIcon.displayName = "ImageIcon";
|
|
1588
|
+
|
|
1589
|
+
// src/primitives/icon/svg/info.tsx
|
|
1590
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1591
|
+
var InfoIcon = (_a) => {
|
|
1592
|
+
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1594
|
+
"svg",
|
|
1595
|
+
__spreadProps(__spreadValues(__spreadValues({
|
|
1596
|
+
viewBox: "0 0 12 12",
|
|
1597
|
+
className,
|
|
1598
|
+
fill: "none"
|
|
1599
|
+
}, getIconA11yProps(title)), props), {
|
|
1600
|
+
children: [
|
|
1601
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("title", { children: title }) : null,
|
|
1602
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("g", { clipPath: "url(#info_clip)", children: [
|
|
1603
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1597
1604
|
"path",
|
|
1598
1605
|
{
|
|
1599
1606
|
d: "M6 0C4.81331 0 3.65328 0.351894 2.66658 1.01118C1.67989 1.67047 0.910851 2.60754 0.456726 3.7039C0.00259972 4.80026 -0.11622 6.00666 0.115291 7.17054C0.346802 8.33443 0.918247 9.40353 1.75736 10.2426C2.59648 11.0818 3.66558 11.6532 4.82946 11.8847C5.99335 12.1162 7.19975 11.9974 8.2961 11.5433C9.39246 11.0892 10.3295 10.3201 10.9888 9.33342C11.6481 8.34673 12 7.18669 12 6C11.9983 4.40923 11.3656 2.88411 10.2407 1.75926C9.1159 0.634414 7.59077 0.00172054 6 0ZM6 11C5.0111 11 4.0444 10.7068 3.22215 10.1573C2.39991 9.60794 1.75904 8.82705 1.38061 7.91342C1.00217 6.99979 0.90315 5.99445 1.09608 5.02455C1.289 4.05464 1.76521 3.16373 2.46447 2.46447C3.16373 1.7652 4.05465 1.289 5.02455 1.09607C5.99446 0.903148 6.99979 1.00216 7.91342 1.3806C8.82705 1.75904 9.60794 2.3999 10.1574 3.22215C10.7068 4.04439 11 5.01109 11 6C10.9985 7.32564 10.4713 8.59656 9.53393 9.53393C8.59656 10.4713 7.32564 10.9985 6 11Z",
|
|
1600
1607
|
fill: "currentColor"
|
|
1601
1608
|
}
|
|
1602
1609
|
),
|
|
1603
|
-
/* @__PURE__ */ (0,
|
|
1610
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1604
1611
|
"path",
|
|
1605
1612
|
{
|
|
1606
1613
|
d: "M6 5H5.5C5.36739 5 5.24021 5.05268 5.14645 5.14645C5.05268 5.24021 5 5.36739 5 5.5C5 5.63261 5.05268 5.75979 5.14645 5.85355C5.24021 5.94732 5.36739 6 5.5 6H6V9C6 9.13261 6.05268 9.25979 6.14645 9.35355C6.24021 9.44732 6.36739 9.5 6.5 9.5C6.63261 9.5 6.75979 9.44732 6.85355 9.35355C6.94732 9.25979 7 9.13261 7 9V6C7 5.73478 6.89464 5.48043 6.70711 5.29289C6.51957 5.10536 6.26522 5 6 5Z",
|
|
1607
1614
|
fill: "currentColor"
|
|
1608
1615
|
}
|
|
1609
1616
|
),
|
|
1610
|
-
/* @__PURE__ */ (0,
|
|
1617
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1611
1618
|
"path",
|
|
1612
1619
|
{
|
|
1613
1620
|
d: "M6 4C6.41421 4 6.75 3.66421 6.75 3.25C6.75 2.83579 6.41421 2.5 6 2.5C5.58579 2.5 5.25 2.83579 5.25 3.25C5.25 3.66421 5.58579 4 6 4Z",
|
|
@@ -1615,7 +1622,7 @@ var InfoIcon = (_a) => {
|
|
|
1615
1622
|
}
|
|
1616
1623
|
)
|
|
1617
1624
|
] }),
|
|
1618
|
-
/* @__PURE__ */ (0,
|
|
1625
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("clipPath", { id: "info_clip", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("rect", { width: "12", height: "12", fill: "white" }) }) })
|
|
1619
1626
|
]
|
|
1620
1627
|
})
|
|
1621
1628
|
);
|
|
@@ -1623,10 +1630,10 @@ var InfoIcon = (_a) => {
|
|
|
1623
1630
|
InfoIcon.displayName = "InfoIcon";
|
|
1624
1631
|
|
|
1625
1632
|
// src/primitives/icon/svg/check-badge.tsx
|
|
1626
|
-
var
|
|
1633
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1627
1634
|
var CheckBadgeIcon = (_a) => {
|
|
1628
1635
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1629
|
-
return /* @__PURE__ */ (0,
|
|
1636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
1630
1637
|
"svg",
|
|
1631
1638
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1632
1639
|
viewBox: "0 0 16 16",
|
|
@@ -1634,15 +1641,15 @@ var CheckBadgeIcon = (_a) => {
|
|
|
1634
1641
|
fill: "none"
|
|
1635
1642
|
}, getIconA11yProps(title)), props), {
|
|
1636
1643
|
children: [
|
|
1637
|
-
title ? /* @__PURE__ */ (0,
|
|
1638
|
-
/* @__PURE__ */ (0,
|
|
1644
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("title", { children: title }) : null,
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("g", { clipPath: "url(#check-badge-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1639
1646
|
"path",
|
|
1640
1647
|
{
|
|
1641
1648
|
d: "M15.4173 6.57883L13.9833 5.14283V3.9975C13.9833 2.89683 13.0886 2.00083 11.9893 2.00083H10.8453L9.4113 0.5655C8.6573 -0.1885 7.34397 -0.1885 6.59063 0.5655L5.15663 2.00083H4.01263C2.91263 2.00083 2.01863 2.89617 2.01863 3.9975V5.14283L0.583965 6.57883C-0.192702 7.3575 -0.192702 8.6235 0.583965 9.40217L2.01796 10.8382V11.9835C2.01796 13.0842 2.91263 13.9802 4.01196 13.9802H5.15596L6.58997 15.4155C6.96663 15.7922 7.46797 16.0002 8.00063 16.0002C8.5333 16.0002 9.03397 15.7922 9.41063 15.4155L10.8446 13.9802H11.9886C13.0886 13.9802 13.9826 13.0848 13.9826 11.9835V10.8382L15.4173 9.40217C16.194 8.6235 16.194 7.3575 15.4173 6.57883ZM12.136 6.8075L8.76663 10.1375C8.3573 10.5442 7.81797 10.7482 7.2793 10.7482C6.74063 10.7482 6.20396 10.5448 5.7933 10.1395L4.06063 8.4735C3.7993 8.21417 3.79663 7.79283 4.05596 7.53083C4.31596 7.27017 4.73663 7.26683 4.9993 7.52617L6.7313 9.1915C7.0333 9.49083 7.52463 9.4915 7.8273 9.1915L11.1973 5.86083C11.46 5.60083 11.8813 5.6035 12.1406 5.8655C12.4 6.1275 12.3973 6.54817 12.136 6.8075Z",
|
|
1642
1649
|
fill: "currentColor"
|
|
1643
1650
|
}
|
|
1644
1651
|
) }),
|
|
1645
|
-
/* @__PURE__ */ (0,
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("clipPath", { id: "check-badge-clip", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1646
1653
|
]
|
|
1647
1654
|
})
|
|
1648
1655
|
);
|
|
@@ -1650,10 +1657,10 @@ var CheckBadgeIcon = (_a) => {
|
|
|
1650
1657
|
CheckBadgeIcon.displayName = "CheckBadgeIcon";
|
|
1651
1658
|
|
|
1652
1659
|
// src/primitives/icon/svg/discord.tsx
|
|
1653
|
-
var
|
|
1660
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1654
1661
|
var DiscordIcon = (_a) => {
|
|
1655
1662
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1656
|
-
return /* @__PURE__ */ (0,
|
|
1663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1657
1664
|
"svg",
|
|
1658
1665
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1659
1666
|
viewBox: "0 0 20 20",
|
|
@@ -1661,8 +1668,8 @@ var DiscordIcon = (_a) => {
|
|
|
1661
1668
|
fill: "none"
|
|
1662
1669
|
}, getIconA11yProps(title)), props), {
|
|
1663
1670
|
children: [
|
|
1664
|
-
title ? /* @__PURE__ */ (0,
|
|
1665
|
-
/* @__PURE__ */ (0,
|
|
1671
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("title", { children: title }) : null,
|
|
1672
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1666
1673
|
"path",
|
|
1667
1674
|
{
|
|
1668
1675
|
d: "M16.3546 4.49236C15.1858 3.95607 13.9329 3.56111 12.6227 3.33499C12.599 3.3304 12.5754 3.34186 12.5624 3.36325C12.4012 3.64973 12.2224 4.02406 12.0979 4.31742C10.6884 4.10657 9.28659 4.10657 7.90615 4.31742C7.78162 4.01719 7.59598 3.64973 7.43479 3.36325C7.42181 3.34186 7.39812 3.33117 7.37444 3.33499C6.06504 3.56035 4.81218 3.95531 3.64258 4.49236C3.63265 4.49618 3.62348 4.50382 3.61813 4.51298C1.24151 8.06379 0.589865 11.5275 0.909193 14.9484C0.910721 14.9653 0.919888 14.9813 0.932875 14.9912C2.50125 16.1433 4.01997 16.8423 5.51119 17.3052C5.53487 17.3128 5.56008 17.3037 5.57536 17.2838C5.9283 16.8025 6.24228 16.2945 6.51195 15.7605C6.52799 15.7292 6.51271 15.6918 6.47986 15.6795C5.98101 15.4901 5.5066 15.2594 5.04976 14.9981C5.01386 14.9767 5.0108 14.9255 5.04365 14.9003C5.13991 14.8285 5.23617 14.7536 5.32784 14.678C5.34465 14.6643 5.36756 14.6612 5.38743 14.6704C8.38819 16.0401 11.6365 16.0401 14.6013 14.6704C14.6212 14.6612 14.6441 14.6635 14.6617 14.678C14.7534 14.7536 14.8496 14.8293 14.9466 14.9011C14.9803 14.9255 14.978 14.9775 14.9413 14.9989C14.4845 15.2655 14.01 15.4916 13.5104 15.6795C13.4776 15.6918 13.4638 15.73 13.4791 15.7613C13.7541 16.2945 14.0689 16.8025 14.4149 17.2838C14.4295 17.3044 14.4554 17.3128 14.4791 17.306C15.9772 16.8423 17.4967 16.1433 19.0643 14.992C19.078 14.9821 19.0865 14.9668 19.088 14.95C19.4699 10.995 18.4478 7.55959 16.3775 4.51451C16.3737 4.50382 16.3645 4.49618 16.3546 4.49236ZM6.96038 12.8659C6.05664 12.8659 5.31256 12.0363 5.31256 11.018C5.31256 9.99962 6.04213 9.16998 6.96038 9.16998C7.88552 9.16998 8.62272 10.0065 8.60821 11.018C8.60821 12.0371 7.87788 12.8659 6.96038 12.8659ZM13.0528 12.8659C12.1498 12.8659 11.405 12.0363 11.405 11.018C11.405 9.99962 12.1346 9.16998 13.0528 9.16998C13.978 9.16998 14.7152 10.0065 14.7007 11.018C14.7007 12.0371 13.978 12.8659 13.0528 12.8659Z",
|
|
@@ -1676,10 +1683,10 @@ var DiscordIcon = (_a) => {
|
|
|
1676
1683
|
DiscordIcon.displayName = "DiscordIcon";
|
|
1677
1684
|
|
|
1678
1685
|
// src/primitives/icon/svg/email.tsx
|
|
1679
|
-
var
|
|
1686
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1680
1687
|
var EmailIcon = (_a) => {
|
|
1681
1688
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1682
|
-
return /* @__PURE__ */ (0,
|
|
1689
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
1683
1690
|
"svg",
|
|
1684
1691
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1685
1692
|
viewBox: "0 0 20 20",
|
|
@@ -1687,8 +1694,8 @@ var EmailIcon = (_a) => {
|
|
|
1687
1694
|
fill: "none"
|
|
1688
1695
|
}, getIconA11yProps(title)), props), {
|
|
1689
1696
|
children: [
|
|
1690
|
-
title ? /* @__PURE__ */ (0,
|
|
1691
|
-
/* @__PURE__ */ (0,
|
|
1697
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("title", { children: title }) : null,
|
|
1698
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1692
1699
|
"path",
|
|
1693
1700
|
{
|
|
1694
1701
|
d: "M3.33333 3.33398H16.6667C17.5833 3.33398 18.3333 4.08398 18.3333 5.00065V15.0007C18.3333 15.9173 17.5833 16.6673 16.6667 16.6673H3.33333C2.41667 16.6673 1.66667 15.9173 1.66667 15.0007V5.00065C1.66667 4.08398 2.41667 3.33398 3.33333 3.33398Z",
|
|
@@ -1698,7 +1705,7 @@ var EmailIcon = (_a) => {
|
|
|
1698
1705
|
strokeLinejoin: "round"
|
|
1699
1706
|
}
|
|
1700
1707
|
),
|
|
1701
|
-
/* @__PURE__ */ (0,
|
|
1708
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1702
1709
|
"path",
|
|
1703
1710
|
{
|
|
1704
1711
|
d: "M18.3333 5L10 10.8333L1.66667 5",
|
|
@@ -1715,10 +1722,10 @@ var EmailIcon = (_a) => {
|
|
|
1715
1722
|
EmailIcon.displayName = "EmailIcon";
|
|
1716
1723
|
|
|
1717
1724
|
// src/primitives/icon/svg/link-accounts.tsx
|
|
1718
|
-
var
|
|
1725
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1719
1726
|
var LinkAccountsIcon = (_a) => {
|
|
1720
1727
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1721
|
-
return /* @__PURE__ */ (0,
|
|
1728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
1722
1729
|
"svg",
|
|
1723
1730
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1724
1731
|
width: "28",
|
|
@@ -1729,15 +1736,15 @@ var LinkAccountsIcon = (_a) => {
|
|
|
1729
1736
|
className
|
|
1730
1737
|
}, getIconA11yProps(title)), props), {
|
|
1731
1738
|
children: [
|
|
1732
|
-
title ? /* @__PURE__ */ (0,
|
|
1733
|
-
/* @__PURE__ */ (0,
|
|
1739
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("title", { children: title }) : null,
|
|
1740
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("g", { clipPath: "url(#clip0_link_accounts)", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
1734
1741
|
"path",
|
|
1735
1742
|
{
|
|
1736
1743
|
d: "M28 18.0835C28 22.2648 24.598 25.6668 20.4167 25.6668H14.5833C10.402 25.6668 7 22.2648 7 18.0835C7 13.9022 10.402 10.5002 14.5833 10.5002H16.9167C17.2387 10.5002 17.5 10.7615 17.5 11.0835C17.5 11.4055 17.2387 11.6668 16.9167 11.6668H14.5833C11.0448 11.6668 8.16667 14.5462 8.16667 18.0835C8.16667 21.6208 11.0448 24.5002 14.5833 24.5002H20.4167C23.9552 24.5002 26.8333 21.6208 26.8333 18.0835C26.8333 15.7992 25.6037 13.67 23.625 12.5243C23.3462 12.3633 23.2505 12.0063 23.4127 11.7275C23.5725 11.4487 23.9283 11.3507 24.2095 11.514C26.5475 12.8662 28.0012 15.3827 28.0012 18.0823L28 18.0835ZM4.375 15.476C2.39517 14.3315 1.16667 12.2012 1.16667 9.91683C1.16667 6.3795 4.04483 3.50016 7.58333 3.50016H13.4167C16.9552 3.50016 19.8333 6.3795 19.8333 9.91683C19.8333 13.4542 16.9552 16.3335 13.4167 16.3335H11.0833C10.7613 16.3335 10.5 16.5948 10.5 16.9168C10.5 17.2388 10.7613 17.5002 11.0833 17.5002H13.4167C17.598 17.5002 21 14.0982 21 9.91683C21 5.7355 17.598 2.3335 13.4167 2.3335H7.58333C3.402 2.3335 0 5.7355 0 9.91683C0 12.6153 1.4525 15.133 3.79167 16.4852C4.0705 16.6462 4.4275 16.5517 4.5885 16.2717C4.75067 15.994 4.655 15.6358 4.37617 15.4748L4.375 15.476Z",
|
|
1737
1744
|
fill: "currentColor"
|
|
1738
1745
|
}
|
|
1739
1746
|
) }),
|
|
1740
|
-
/* @__PURE__ */ (0,
|
|
1747
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("clipPath", { id: "clip0_link_accounts", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
1741
1748
|
]
|
|
1742
1749
|
})
|
|
1743
1750
|
);
|
|
@@ -1745,10 +1752,10 @@ var LinkAccountsIcon = (_a) => {
|
|
|
1745
1752
|
LinkAccountsIcon.displayName = "LinkAccountsIcon";
|
|
1746
1753
|
|
|
1747
1754
|
// src/primitives/icon/svg/pencil.tsx
|
|
1748
|
-
var
|
|
1755
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1749
1756
|
var PencilIcon = (_a) => {
|
|
1750
1757
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1751
|
-
return /* @__PURE__ */ (0,
|
|
1758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
1752
1759
|
"svg",
|
|
1753
1760
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1754
1761
|
viewBox: "0 0 16 16",
|
|
@@ -1756,15 +1763,15 @@ var PencilIcon = (_a) => {
|
|
|
1756
1763
|
fill: "none"
|
|
1757
1764
|
}, getIconA11yProps(title)), props), {
|
|
1758
1765
|
children: [
|
|
1759
|
-
title ? /* @__PURE__ */ (0,
|
|
1760
|
-
/* @__PURE__ */ (0,
|
|
1766
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("title", { children: title }) : null,
|
|
1767
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("g", { clipPath: "url(#pencil_clip)", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
1761
1768
|
"path",
|
|
1762
1769
|
{
|
|
1763
1770
|
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",
|
|
1764
1771
|
fill: "currentColor"
|
|
1765
1772
|
}
|
|
1766
1773
|
) }),
|
|
1767
|
-
/* @__PURE__ */ (0,
|
|
1774
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("clipPath", { id: "pencil_clip", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1768
1775
|
]
|
|
1769
1776
|
})
|
|
1770
1777
|
);
|
|
@@ -1772,10 +1779,10 @@ var PencilIcon = (_a) => {
|
|
|
1772
1779
|
PencilIcon.displayName = "PencilIcon";
|
|
1773
1780
|
|
|
1774
1781
|
// src/primitives/icon/svg/play-square.tsx
|
|
1775
|
-
var
|
|
1782
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1776
1783
|
var PlaySquareIcon = (_a) => {
|
|
1777
1784
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1778
|
-
return /* @__PURE__ */ (0,
|
|
1785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
1779
1786
|
"svg",
|
|
1780
1787
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1781
1788
|
viewBox: "0 0 16 16",
|
|
@@ -1783,15 +1790,15 @@ var PlaySquareIcon = (_a) => {
|
|
|
1783
1790
|
fill: "none"
|
|
1784
1791
|
}, getIconA11yProps(title)), props), {
|
|
1785
1792
|
children: [
|
|
1786
|
-
title ? /* @__PURE__ */ (0,
|
|
1787
|
-
/* @__PURE__ */ (0,
|
|
1793
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("title", { children: title }) : null,
|
|
1794
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("g", { clipPath: "url(#play-square-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
1788
1795
|
"path",
|
|
1789
1796
|
{
|
|
1790
1797
|
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",
|
|
1791
1798
|
fill: "currentColor"
|
|
1792
1799
|
}
|
|
1793
1800
|
) }),
|
|
1794
|
-
/* @__PURE__ */ (0,
|
|
1801
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("clipPath", { id: "play-square-clip", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
1795
1802
|
]
|
|
1796
1803
|
})
|
|
1797
1804
|
);
|
|
@@ -1799,10 +1806,10 @@ var PlaySquareIcon = (_a) => {
|
|
|
1799
1806
|
PlaySquareIcon.displayName = "PlaySquareIcon";
|
|
1800
1807
|
|
|
1801
1808
|
// src/primitives/icon/svg/profile.tsx
|
|
1802
|
-
var
|
|
1809
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1803
1810
|
var ProfileIcon = (_a) => {
|
|
1804
1811
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1805
|
-
return /* @__PURE__ */ (0,
|
|
1812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
1806
1813
|
"svg",
|
|
1807
1814
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1808
1815
|
viewBox: "0 0 21 28",
|
|
@@ -1810,8 +1817,8 @@ var ProfileIcon = (_a) => {
|
|
|
1810
1817
|
fill: "none"
|
|
1811
1818
|
}, getIconA11yProps(title)), props), {
|
|
1812
1819
|
children: [
|
|
1813
|
-
title ? /* @__PURE__ */ (0,
|
|
1814
|
-
/* @__PURE__ */ (0,
|
|
1820
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("title", { children: title }) : null,
|
|
1821
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1815
1822
|
"path",
|
|
1816
1823
|
{
|
|
1817
1824
|
d: "M10.5 14C14.3605 14 17.5 10.8605 17.5 7C17.5 3.1395 14.3605 0 10.5 0C6.6395 0 3.5 3.1395 3.5 7C3.5 10.8605 6.6395 14 10.5 14ZM10.5 1.16667C13.7165 1.16667 16.3333 3.7835 16.3333 7C16.3333 10.2165 13.7165 12.8333 10.5 12.8333C7.2835 12.8333 4.66667 10.2165 4.66667 7C4.66667 3.7835 7.2835 1.16667 10.5 1.16667ZM21 26.8333V27.4167C21 27.7387 20.7387 28 20.4167 28C20.0947 28 19.8333 27.7387 19.8333 27.4167V26.8333C19.8333 21.6872 15.6462 17.5 10.5 17.5C5.35383 17.5 1.16667 21.6872 1.16667 26.8333V27.4167C1.16667 27.7387 0.905333 28 0.583333 28C0.261333 28 0 27.7387 0 27.4167V26.8333C0 21.0443 4.711 16.3333 10.5 16.3333C16.289 16.3333 21 21.0443 21 26.8333Z",
|
|
@@ -1825,10 +1832,10 @@ var ProfileIcon = (_a) => {
|
|
|
1825
1832
|
ProfileIcon.displayName = "ProfileIcon";
|
|
1826
1833
|
|
|
1827
1834
|
// src/primitives/icon/svg/revenue-alt.tsx
|
|
1828
|
-
var
|
|
1835
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1829
1836
|
var RevenueAltIcon = (_a) => {
|
|
1830
1837
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1831
|
-
return /* @__PURE__ */ (0,
|
|
1838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
1832
1839
|
"svg",
|
|
1833
1840
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1834
1841
|
viewBox: "0 0 20 20",
|
|
@@ -1836,8 +1843,8 @@ var RevenueAltIcon = (_a) => {
|
|
|
1836
1843
|
fill: "none"
|
|
1837
1844
|
}, getIconA11yProps(title)), props), {
|
|
1838
1845
|
children: [
|
|
1839
|
-
title ? /* @__PURE__ */ (0,
|
|
1840
|
-
/* @__PURE__ */ (0,
|
|
1846
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("title", { children: title }) : null,
|
|
1847
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1841
1848
|
"path",
|
|
1842
1849
|
{
|
|
1843
1850
|
d: "M3 14V6M3 6L1.5 7.5M3 6L4.5 7.5M17 6V14M17 14L15.5 12.5M17 14L18.5 12.5",
|
|
@@ -1847,7 +1854,7 @@ var RevenueAltIcon = (_a) => {
|
|
|
1847
1854
|
strokeLinejoin: "round"
|
|
1848
1855
|
}
|
|
1849
1856
|
),
|
|
1850
|
-
/* @__PURE__ */ (0,
|
|
1857
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1851
1858
|
"path",
|
|
1852
1859
|
{
|
|
1853
1860
|
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",
|
|
@@ -1864,10 +1871,10 @@ var RevenueAltIcon = (_a) => {
|
|
|
1864
1871
|
RevenueAltIcon.displayName = "RevenueAltIcon";
|
|
1865
1872
|
|
|
1866
1873
|
// src/primitives/icon/svg/search.tsx
|
|
1867
|
-
var
|
|
1874
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1868
1875
|
var SearchIcon = (_a) => {
|
|
1869
1876
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1870
|
-
return /* @__PURE__ */ (0,
|
|
1877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1871
1878
|
"svg",
|
|
1872
1879
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1873
1880
|
viewBox: "0 0 16 16",
|
|
@@ -1876,8 +1883,8 @@ var SearchIcon = (_a) => {
|
|
|
1876
1883
|
className
|
|
1877
1884
|
}, getIconA11yProps(title)), props), {
|
|
1878
1885
|
children: [
|
|
1879
|
-
title ? /* @__PURE__ */ (0,
|
|
1880
|
-
/* @__PURE__ */ (0,
|
|
1886
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("title", { children: title }) : null,
|
|
1887
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1881
1888
|
"path",
|
|
1882
1889
|
{
|
|
1883
1890
|
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",
|
|
@@ -1887,7 +1894,7 @@ var SearchIcon = (_a) => {
|
|
|
1887
1894
|
strokeLinejoin: "round"
|
|
1888
1895
|
}
|
|
1889
1896
|
),
|
|
1890
|
-
/* @__PURE__ */ (0,
|
|
1897
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1891
1898
|
"path",
|
|
1892
1899
|
{
|
|
1893
1900
|
d: "M13.6668 13.6666L11.1667 11.1666",
|
|
@@ -1904,10 +1911,10 @@ var SearchIcon = (_a) => {
|
|
|
1904
1911
|
SearchIcon.displayName = "SearchIcon";
|
|
1905
1912
|
|
|
1906
1913
|
// src/primitives/icon/svg/shield-trust.tsx
|
|
1907
|
-
var
|
|
1914
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1908
1915
|
var ShieldTrustIcon = (_a) => {
|
|
1909
1916
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1910
|
-
return /* @__PURE__ */ (0,
|
|
1917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
1911
1918
|
"svg",
|
|
1912
1919
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1913
1920
|
viewBox: "0 0 16 16",
|
|
@@ -1915,15 +1922,15 @@ var ShieldTrustIcon = (_a) => {
|
|
|
1915
1922
|
fill: "none"
|
|
1916
1923
|
}, getIconA11yProps(title)), props), {
|
|
1917
1924
|
children: [
|
|
1918
|
-
title ? /* @__PURE__ */ (0,
|
|
1919
|
-
/* @__PURE__ */ (0,
|
|
1925
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("title", { children: title }) : null,
|
|
1926
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1920
1927
|
"path",
|
|
1921
1928
|
{
|
|
1922
1929
|
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",
|
|
1923
1930
|
fill: "currentColor"
|
|
1924
1931
|
}
|
|
1925
1932
|
),
|
|
1926
|
-
/* @__PURE__ */ (0,
|
|
1933
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1927
1934
|
"path",
|
|
1928
1935
|
{
|
|
1929
1936
|
d: "M5.5 8.2L7.2 9.9L10.8 6.3",
|
|
@@ -1940,10 +1947,10 @@ var ShieldTrustIcon = (_a) => {
|
|
|
1940
1947
|
ShieldTrustIcon.displayName = "ShieldTrustIcon";
|
|
1941
1948
|
|
|
1942
1949
|
// src/primitives/icon/svg/solana.tsx
|
|
1943
|
-
var
|
|
1950
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1944
1951
|
var SolanaIcon = (_a) => {
|
|
1945
1952
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
1946
|
-
return /* @__PURE__ */ (0,
|
|
1953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
1947
1954
|
"svg",
|
|
1948
1955
|
__spreadProps(__spreadValues(__spreadValues({
|
|
1949
1956
|
viewBox: "0 0 24 24",
|
|
@@ -1951,31 +1958,31 @@ var SolanaIcon = (_a) => {
|
|
|
1951
1958
|
fill: "none"
|
|
1952
1959
|
}, getIconA11yProps(title)), props), {
|
|
1953
1960
|
children: [
|
|
1954
|
-
title ? /* @__PURE__ */ (0,
|
|
1955
|
-
/* @__PURE__ */ (0,
|
|
1956
|
-
/* @__PURE__ */ (0,
|
|
1961
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("title", { children: title }) : null,
|
|
1962
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("rect", { width: "24", height: "24", rx: "8", fill: "#020205" }),
|
|
1963
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1957
1964
|
"path",
|
|
1958
1965
|
{
|
|
1959
1966
|
fill: "url(#agg-solana-gradient-top)",
|
|
1960
1967
|
d: "M8.351 6.163A1.57 1.57 0 0 1 9.463 5.7h8.208c.699 0 1.048.844.554 1.338l-2.576 2.576a1.57 1.57 0 0 1-1.11.46H6.33c-.699 0-1.048-.844-.554-1.338L8.35 6.163Z"
|
|
1961
1968
|
}
|
|
1962
1969
|
),
|
|
1963
|
-
/* @__PURE__ */ (0,
|
|
1970
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1964
1971
|
"path",
|
|
1965
1972
|
{
|
|
1966
1973
|
fill: "url(#agg-solana-gradient-middle)",
|
|
1967
1974
|
d: "M8.351 13.926a1.57 1.57 0 0 1 1.112-.463h8.208c.699 0 1.048.844.554 1.338l-2.576 2.576a1.57 1.57 0 0 1-1.11.46H6.33c-.699 0-1.048-.844-.554-1.338l2.576-2.573Z"
|
|
1968
1975
|
}
|
|
1969
1976
|
),
|
|
1970
|
-
/* @__PURE__ */ (0,
|
|
1977
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
1971
1978
|
"path",
|
|
1972
1979
|
{
|
|
1973
1980
|
fill: "url(#agg-solana-gradient-bottom)",
|
|
1974
1981
|
d: "M18.225 10.89a1.57 1.57 0 0 1-1.112.462H8.905c-.699 0-1.048-.845-.554-1.339L10.927 7.44a1.57 1.57 0 0 1 1.11-.46h8.208c.699 0 1.048.844.554 1.338L18.225 10.89Z"
|
|
1975
1982
|
}
|
|
1976
1983
|
),
|
|
1977
|
-
/* @__PURE__ */ (0,
|
|
1978
|
-
/* @__PURE__ */ (0,
|
|
1984
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("defs", { children: [
|
|
1985
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
1979
1986
|
"linearGradient",
|
|
1980
1987
|
{
|
|
1981
1988
|
id: "agg-solana-gradient-top",
|
|
@@ -1985,12 +1992,12 @@ var SolanaIcon = (_a) => {
|
|
|
1985
1992
|
y2: "17.476",
|
|
1986
1993
|
gradientUnits: "userSpaceOnUse",
|
|
1987
1994
|
children: [
|
|
1988
|
-
/* @__PURE__ */ (0,
|
|
1989
|
-
/* @__PURE__ */ (0,
|
|
1995
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { stopColor: "#4BF0B8" }),
|
|
1996
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "1", stopColor: "#B44CF4" })
|
|
1990
1997
|
]
|
|
1991
1998
|
}
|
|
1992
1999
|
),
|
|
1993
|
-
/* @__PURE__ */ (0,
|
|
2000
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
1994
2001
|
"linearGradient",
|
|
1995
2002
|
{
|
|
1996
2003
|
id: "agg-solana-gradient-middle",
|
|
@@ -2000,12 +2007,12 @@ var SolanaIcon = (_a) => {
|
|
|
2000
2007
|
y2: "21.238",
|
|
2001
2008
|
gradientUnits: "userSpaceOnUse",
|
|
2002
2009
|
children: [
|
|
2003
|
-
/* @__PURE__ */ (0,
|
|
2004
|
-
/* @__PURE__ */ (0,
|
|
2010
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { stopColor: "#4BF0B8" }),
|
|
2011
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "1", stopColor: "#B44CF4" })
|
|
2005
2012
|
]
|
|
2006
2013
|
}
|
|
2007
2014
|
),
|
|
2008
|
-
/* @__PURE__ */ (0,
|
|
2015
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
2009
2016
|
"linearGradient",
|
|
2010
2017
|
{
|
|
2011
2018
|
id: "agg-solana-gradient-bottom",
|
|
@@ -2015,8 +2022,8 @@ var SolanaIcon = (_a) => {
|
|
|
2015
2022
|
y2: "19.359",
|
|
2016
2023
|
gradientUnits: "userSpaceOnUse",
|
|
2017
2024
|
children: [
|
|
2018
|
-
/* @__PURE__ */ (0,
|
|
2019
|
-
/* @__PURE__ */ (0,
|
|
2025
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { stopColor: "#4BF0B8" }),
|
|
2026
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "1", stopColor: "#B44CF4" })
|
|
2020
2027
|
]
|
|
2021
2028
|
}
|
|
2022
2029
|
)
|
|
@@ -2028,10 +2035,10 @@ var SolanaIcon = (_a) => {
|
|
|
2028
2035
|
SolanaIcon.displayName = "SolanaIcon";
|
|
2029
2036
|
|
|
2030
2037
|
// src/primitives/icon/svg/stay-in-control.tsx
|
|
2031
|
-
var
|
|
2038
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2032
2039
|
var StayInControlIcon = (_a) => {
|
|
2033
2040
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2034
|
-
return /* @__PURE__ */ (0,
|
|
2041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
2035
2042
|
"svg",
|
|
2036
2043
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2037
2044
|
width: "28",
|
|
@@ -2042,16 +2049,16 @@ var StayInControlIcon = (_a) => {
|
|
|
2042
2049
|
className
|
|
2043
2050
|
}, getIconA11yProps(title)), props), {
|
|
2044
2051
|
children: [
|
|
2045
|
-
title ? /* @__PURE__ */ (0,
|
|
2046
|
-
/* @__PURE__ */ (0,
|
|
2047
|
-
/* @__PURE__ */ (0,
|
|
2052
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("title", { children: title }) : null,
|
|
2053
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
|
|
2054
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2048
2055
|
"path",
|
|
2049
2056
|
{
|
|
2050
2057
|
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",
|
|
2051
2058
|
fill: "currentColor"
|
|
2052
2059
|
}
|
|
2053
2060
|
),
|
|
2054
|
-
/* @__PURE__ */ (0,
|
|
2061
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2055
2062
|
"path",
|
|
2056
2063
|
{
|
|
2057
2064
|
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",
|
|
@@ -2059,7 +2066,7 @@ var StayInControlIcon = (_a) => {
|
|
|
2059
2066
|
}
|
|
2060
2067
|
)
|
|
2061
2068
|
] }),
|
|
2062
|
-
/* @__PURE__ */ (0,
|
|
2069
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
|
|
2063
2070
|
]
|
|
2064
2071
|
})
|
|
2065
2072
|
);
|
|
@@ -2067,10 +2074,10 @@ var StayInControlIcon = (_a) => {
|
|
|
2067
2074
|
StayInControlIcon.displayName = "StayInControlIcon";
|
|
2068
2075
|
|
|
2069
2076
|
// src/primitives/icon/svg/telegram.tsx
|
|
2070
|
-
var
|
|
2077
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2071
2078
|
var TelegramIcon = (_a) => {
|
|
2072
2079
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2073
|
-
return /* @__PURE__ */ (0,
|
|
2080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
2074
2081
|
"svg",
|
|
2075
2082
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2076
2083
|
viewBox: "0 0 20 20",
|
|
@@ -2078,8 +2085,8 @@ var TelegramIcon = (_a) => {
|
|
|
2078
2085
|
fill: "none"
|
|
2079
2086
|
}, getIconA11yProps(title)), props), {
|
|
2080
2087
|
children: [
|
|
2081
|
-
title ? /* @__PURE__ */ (0,
|
|
2082
|
-
/* @__PURE__ */ (0,
|
|
2088
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("title", { children: title }) : null,
|
|
2089
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
2083
2090
|
"path",
|
|
2084
2091
|
{
|
|
2085
2092
|
fillRule: "evenodd",
|
|
@@ -2088,7 +2095,7 @@ var TelegramIcon = (_a) => {
|
|
|
2088
2095
|
fill: "currentColor"
|
|
2089
2096
|
}
|
|
2090
2097
|
) }),
|
|
2091
|
-
/* @__PURE__ */ (0,
|
|
2098
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
2092
2099
|
]
|
|
2093
2100
|
})
|
|
2094
2101
|
);
|
|
@@ -2096,10 +2103,10 @@ var TelegramIcon = (_a) => {
|
|
|
2096
2103
|
TelegramIcon.displayName = "TelegramIcon";
|
|
2097
2104
|
|
|
2098
2105
|
// src/primitives/icon/svg/triangle-down.tsx
|
|
2099
|
-
var
|
|
2106
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2100
2107
|
var TriangleDownIcon = (_a) => {
|
|
2101
2108
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2102
|
-
return /* @__PURE__ */ (0,
|
|
2109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
2103
2110
|
"svg",
|
|
2104
2111
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2105
2112
|
viewBox: "0 0 8 8",
|
|
@@ -2107,16 +2114,16 @@ var TriangleDownIcon = (_a) => {
|
|
|
2107
2114
|
fill: "none"
|
|
2108
2115
|
}, getIconA11yProps(title)), props), {
|
|
2109
2116
|
children: [
|
|
2110
|
-
title ? /* @__PURE__ */ (0,
|
|
2111
|
-
/* @__PURE__ */ (0,
|
|
2112
|
-
/* @__PURE__ */ (0,
|
|
2117
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("title", { children: title }) : null,
|
|
2118
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
|
|
2119
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2113
2120
|
"path",
|
|
2114
2121
|
{
|
|
2115
2122
|
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",
|
|
2116
2123
|
fill: "currentColor"
|
|
2117
2124
|
}
|
|
2118
2125
|
),
|
|
2119
|
-
/* @__PURE__ */ (0,
|
|
2126
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2120
2127
|
"path",
|
|
2121
2128
|
{
|
|
2122
2129
|
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",
|
|
@@ -2124,7 +2131,7 @@ var TriangleDownIcon = (_a) => {
|
|
|
2124
2131
|
}
|
|
2125
2132
|
)
|
|
2126
2133
|
] }),
|
|
2127
|
-
/* @__PURE__ */ (0,
|
|
2134
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
2128
2135
|
]
|
|
2129
2136
|
})
|
|
2130
2137
|
);
|
|
@@ -2132,10 +2139,10 @@ var TriangleDownIcon = (_a) => {
|
|
|
2132
2139
|
TriangleDownIcon.displayName = "TriangleDownIcon";
|
|
2133
2140
|
|
|
2134
2141
|
// src/primitives/icon/svg/triangle-up-filled.tsx
|
|
2135
|
-
var
|
|
2142
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2136
2143
|
var TriangleUpFilledIcon = (_a) => {
|
|
2137
2144
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2138
|
-
return /* @__PURE__ */ (0,
|
|
2145
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
2139
2146
|
"svg",
|
|
2140
2147
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2141
2148
|
viewBox: "0 0 8 8",
|
|
@@ -2143,8 +2150,8 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
2143
2150
|
fill: "none"
|
|
2144
2151
|
}, getIconA11yProps(title)), props), {
|
|
2145
2152
|
children: [
|
|
2146
|
-
title ? /* @__PURE__ */ (0,
|
|
2147
|
-
/* @__PURE__ */ (0,
|
|
2153
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("title", { children: title }) : null,
|
|
2154
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
2148
2155
|
"path",
|
|
2149
2156
|
{
|
|
2150
2157
|
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",
|
|
@@ -2158,10 +2165,10 @@ var TriangleUpFilledIcon = (_a) => {
|
|
|
2158
2165
|
TriangleUpFilledIcon.displayName = "TriangleUpFilledIcon";
|
|
2159
2166
|
|
|
2160
2167
|
// src/primitives/icon/svg/triangle-up.tsx
|
|
2161
|
-
var
|
|
2168
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2162
2169
|
var TriangleUpIcon = (_a) => {
|
|
2163
2170
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2164
|
-
return /* @__PURE__ */ (0,
|
|
2171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
2165
2172
|
"svg",
|
|
2166
2173
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2167
2174
|
viewBox: "0 0 8 8",
|
|
@@ -2169,16 +2176,16 @@ var TriangleUpIcon = (_a) => {
|
|
|
2169
2176
|
fill: "none"
|
|
2170
2177
|
}, getIconA11yProps(title)), props), {
|
|
2171
2178
|
children: [
|
|
2172
|
-
title ? /* @__PURE__ */ (0,
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2179
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("title", { children: title }) : null,
|
|
2180
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
|
|
2181
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2175
2182
|
"path",
|
|
2176
2183
|
{
|
|
2177
2184
|
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",
|
|
2178
2185
|
fill: "currentColor"
|
|
2179
2186
|
}
|
|
2180
2187
|
),
|
|
2181
|
-
/* @__PURE__ */ (0,
|
|
2188
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2182
2189
|
"path",
|
|
2183
2190
|
{
|
|
2184
2191
|
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",
|
|
@@ -2186,7 +2193,7 @@ var TriangleUpIcon = (_a) => {
|
|
|
2186
2193
|
}
|
|
2187
2194
|
)
|
|
2188
2195
|
] }),
|
|
2189
|
-
/* @__PURE__ */ (0,
|
|
2196
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
|
|
2190
2197
|
]
|
|
2191
2198
|
})
|
|
2192
2199
|
);
|
|
@@ -2194,10 +2201,10 @@ var TriangleUpIcon = (_a) => {
|
|
|
2194
2201
|
TriangleUpIcon.displayName = "TriangleUpIcon";
|
|
2195
2202
|
|
|
2196
2203
|
// src/primitives/icon/svg/twitter.tsx
|
|
2197
|
-
var
|
|
2204
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2198
2205
|
var TwitterIcon = (_a) => {
|
|
2199
2206
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2200
|
-
return /* @__PURE__ */ (0,
|
|
2207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2201
2208
|
"svg",
|
|
2202
2209
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2203
2210
|
viewBox: "0 0 20 20",
|
|
@@ -2205,8 +2212,8 @@ var TwitterIcon = (_a) => {
|
|
|
2205
2212
|
fill: "none"
|
|
2206
2213
|
}, getIconA11yProps(title)), props), {
|
|
2207
2214
|
children: [
|
|
2208
|
-
title ? /* @__PURE__ */ (0,
|
|
2209
|
-
/* @__PURE__ */ (0,
|
|
2215
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("title", { children: title }) : null,
|
|
2216
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2210
2217
|
"path",
|
|
2211
2218
|
{
|
|
2212
2219
|
d: "M15.2708 1.66602H18.0834L11.9402 8.68539L19.1666 18.2386H13.51L9.07638 12.446L4.00874 18.2386H1.19152L7.76096 10.7288L0.833252 1.66602H6.63346L10.637 6.96053L15.2708 1.66602ZM14.283 16.5573H15.8406L5.78478 3.25949H4.11186L14.283 16.5573Z",
|
|
@@ -2220,10 +2227,10 @@ var TwitterIcon = (_a) => {
|
|
|
2220
2227
|
TwitterIcon.displayName = "TwitterIcon";
|
|
2221
2228
|
|
|
2222
2229
|
// src/primitives/icon/svg/upload.tsx
|
|
2223
|
-
var
|
|
2230
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2224
2231
|
var UploadIcon = (_a) => {
|
|
2225
2232
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2226
|
-
return /* @__PURE__ */ (0,
|
|
2233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2227
2234
|
"svg",
|
|
2228
2235
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2229
2236
|
viewBox: "0 0 16 16",
|
|
@@ -2231,8 +2238,8 @@ var UploadIcon = (_a) => {
|
|
|
2231
2238
|
fill: "none"
|
|
2232
2239
|
}, getIconA11yProps(title)), props), {
|
|
2233
2240
|
children: [
|
|
2234
|
-
title ? /* @__PURE__ */ (0,
|
|
2235
|
-
/* @__PURE__ */ (0,
|
|
2241
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("title", { children: title }) : null,
|
|
2242
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2236
2243
|
"path",
|
|
2237
2244
|
{
|
|
2238
2245
|
d: "M8 13.5v-7m0 0 2.5 2.5M8 6.5 5.5 9",
|
|
@@ -2242,7 +2249,7 @@ var UploadIcon = (_a) => {
|
|
|
2242
2249
|
strokeLinejoin: "round"
|
|
2243
2250
|
}
|
|
2244
2251
|
),
|
|
2245
|
-
/* @__PURE__ */ (0,
|
|
2252
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { d: "M2.5 3.5h11", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
2246
2253
|
]
|
|
2247
2254
|
})
|
|
2248
2255
|
);
|
|
@@ -2250,10 +2257,10 @@ var UploadIcon = (_a) => {
|
|
|
2250
2257
|
UploadIcon.displayName = "UploadIcon";
|
|
2251
2258
|
|
|
2252
2259
|
// src/primitives/icon/svg/wallet-avatar.tsx
|
|
2253
|
-
var
|
|
2260
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2254
2261
|
function WalletAvatarIcon(_a) {
|
|
2255
2262
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2256
|
-
return /* @__PURE__ */ (0,
|
|
2263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
2257
2264
|
"svg",
|
|
2258
2265
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2259
2266
|
fill: "none",
|
|
@@ -2261,9 +2268,9 @@ function WalletAvatarIcon(_a) {
|
|
|
2261
2268
|
viewBox: "0 0 16 16"
|
|
2262
2269
|
}, getIconA11yProps(title)), props), {
|
|
2263
2270
|
children: [
|
|
2264
|
-
title ? /* @__PURE__ */ (0,
|
|
2265
|
-
/* @__PURE__ */ (0,
|
|
2266
|
-
/* @__PURE__ */ (0,
|
|
2271
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("title", { children: title }) : null,
|
|
2272
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
|
|
2273
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
|
|
2267
2274
|
]
|
|
2268
2275
|
})
|
|
2269
2276
|
);
|
|
@@ -2271,10 +2278,10 @@ function WalletAvatarIcon(_a) {
|
|
|
2271
2278
|
WalletAvatarIcon.displayName = "WalletAvatarIcon";
|
|
2272
2279
|
|
|
2273
2280
|
// src/primitives/icon/svg/wallet.tsx
|
|
2274
|
-
var
|
|
2281
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2275
2282
|
var WalletIcon = (_a) => {
|
|
2276
2283
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2277
|
-
return /* @__PURE__ */ (0,
|
|
2284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
2278
2285
|
"svg",
|
|
2279
2286
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2280
2287
|
viewBox: "0 0 24 24",
|
|
@@ -2282,8 +2289,8 @@ var WalletIcon = (_a) => {
|
|
|
2282
2289
|
fill: "none"
|
|
2283
2290
|
}, getIconA11yProps(title)), props), {
|
|
2284
2291
|
children: [
|
|
2285
|
-
title ? /* @__PURE__ */ (0,
|
|
2286
|
-
/* @__PURE__ */ (0,
|
|
2292
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("title", { children: title }) : null,
|
|
2293
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
2287
2294
|
"path",
|
|
2288
2295
|
{
|
|
2289
2296
|
d: "M19.5 6H5.25C4.836 6 4.5 5.664 4.5 5.25C4.5 4.836 4.836 4.5 5.25 4.5H19.5C19.914 4.5 20.25 4.164 20.25 3.75C20.25 2.508 19.242 1.5 18 1.5H4.5C2.843 1.5 1.5 2.843 1.5 4.5V19.5C1.5 21.157 2.843 22.5 4.5 22.5H19.5C21.157 22.5 22.5 21.157 22.5 19.5V9C22.5 7.343 21.157 6 19.5 6ZM2.5 4.5C2.5 3.395 3.395 2.5 4.5 2.5H18C18.552 2.5 19.026 2.834 19.199 3.318C19.176 3.312 19.153 3.5 18 3.5H5.25C4.284 3.5 3.5 4.284 3.5 5.25C3.5 5.388 3.519 5.522 3.555 5.649C2.936 5.369 2.5 4.972 2.5 4.5ZM21.5 19.5C21.5 20.605 20.605 21.5 19.5 21.5H4.5C3.395 21.5 2.5 20.605 2.5 19.5V7.04C3.09 7.336 3.771 7 5.25 7H19.5C20.605 7 21.5 7.895 21.5 9V12H18C16.343 12 15 13.343 15 15C15 16.657 16.343 18 18 18H21.5V19.5ZM21.5 17H18C16.895 17 16 16.105 16 15C16 13.895 16.895 13 18 13H21.5V17ZM18 15.75C18.414 15.75 18.75 15.414 18.75 15C18.75 14.586 18.414 14.25 18 14.25C17.586 14.25 17.25 14.586 17.25 15C17.25 15.414 17.586 15.75 18 15.75Z",
|
|
@@ -2297,10 +2304,10 @@ var WalletIcon = (_a) => {
|
|
|
2297
2304
|
WalletIcon.displayName = "WalletIcon";
|
|
2298
2305
|
|
|
2299
2306
|
// src/primitives/icon/svg/warning-filled.tsx
|
|
2300
|
-
var
|
|
2307
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2301
2308
|
var WarningFilledIcon = (_a) => {
|
|
2302
2309
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2303
|
-
return /* @__PURE__ */ (0,
|
|
2310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
2304
2311
|
"svg",
|
|
2305
2312
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2306
2313
|
viewBox: "0 0 16 16",
|
|
@@ -2308,8 +2315,8 @@ var WarningFilledIcon = (_a) => {
|
|
|
2308
2315
|
fill: "none"
|
|
2309
2316
|
}, getIconA11yProps(title)), props), {
|
|
2310
2317
|
children: [
|
|
2311
|
-
title ? /* @__PURE__ */ (0,
|
|
2312
|
-
/* @__PURE__ */ (0,
|
|
2318
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("title", { children: title }) : null,
|
|
2319
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
2313
2320
|
"path",
|
|
2314
2321
|
{
|
|
2315
2322
|
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",
|
|
@@ -2323,10 +2330,10 @@ var WarningFilledIcon = (_a) => {
|
|
|
2323
2330
|
WarningFilledIcon.displayName = "WarningFilledIcon";
|
|
2324
2331
|
|
|
2325
2332
|
// src/primitives/icon/svg/warning.tsx
|
|
2326
|
-
var
|
|
2333
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2327
2334
|
var WarningIcon = (_a) => {
|
|
2328
2335
|
var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
|
|
2329
|
-
return /* @__PURE__ */ (0,
|
|
2336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
2330
2337
|
"svg",
|
|
2331
2338
|
__spreadProps(__spreadValues(__spreadValues({
|
|
2332
2339
|
width: "14",
|
|
@@ -2337,15 +2344,15 @@ var WarningIcon = (_a) => {
|
|
|
2337
2344
|
className
|
|
2338
2345
|
}, getIconA11yProps(title)), props), {
|
|
2339
2346
|
children: [
|
|
2340
|
-
title ? /* @__PURE__ */ (0,
|
|
2341
|
-
/* @__PURE__ */ (0,
|
|
2347
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("title", { children: title }) : null,
|
|
2348
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("g", { clipPath: "url(#clip0_warning)", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
2342
2349
|
"path",
|
|
2343
2350
|
{
|
|
2344
2351
|
d: "M6.41665 8.16675V4.66675C6.41665 4.34591 6.67915 4.08341 6.99998 4.08341C7.32082 4.08341 7.58332 4.34591 7.58332 4.66675V8.16675C7.58332 8.48758 7.32082 8.75008 6.99998 8.75008C6.67915 8.75008 6.41665 8.48758 6.41665 8.16675ZM6.99998 9.33341C6.51582 9.33341 6.12498 9.72425 6.12498 10.2084C6.12498 10.6926 6.51582 11.0834 6.99998 11.0834C7.48415 11.0834 7.87498 10.6926 7.87498 10.2084C7.87498 9.72425 7.48415 9.33341 6.99998 9.33341ZM13.755 12.1801C13.3467 12.9676 12.4892 13.4167 11.4158 13.4167H2.58998C1.51082 13.4167 0.659151 12.9676 0.250818 12.1801C-0.163348 11.3867 -0.0466818 10.3717 0.542485 9.52008L5.23248 2.10008C5.64665 1.50508 6.29998 1.16675 6.99998 1.16675C7.69999 1.16675 8.35332 1.50508 8.74998 2.08258L13.4633 9.53175C14.0525 10.3834 14.1633 11.3926 13.7492 12.1801H13.755ZM12.5008 10.1851C12.5008 10.1851 12.4892 10.1734 12.4892 10.1617L7.78165 2.72425C7.61248 2.48508 7.32082 2.33341 6.99998 2.33341C6.67915 2.33341 6.38749 2.48508 6.20665 2.74758L1.51082 10.1617C1.14915 10.6751 1.06748 11.2351 1.27748 11.6376C1.48165 12.0342 1.94832 12.2501 2.58415 12.2501H11.4042C12.04 12.2501 12.5067 12.0342 12.7108 11.6376C12.9208 11.2351 12.8392 10.6751 12.495 10.1851H12.5008Z",
|
|
2345
2352
|
fill: "currentColor"
|
|
2346
2353
|
}
|
|
2347
2354
|
) }),
|
|
2348
|
-
/* @__PURE__ */ (0,
|
|
2355
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("clipPath", { id: "clip0_warning", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2349
2356
|
]
|
|
2350
2357
|
})
|
|
2351
2358
|
);
|
|
@@ -2382,6 +2389,7 @@ var iconRegistry = {
|
|
|
2382
2389
|
ethereum: EthereumIcon,
|
|
2383
2390
|
"external-link": ExternalLinkIcon,
|
|
2384
2391
|
google: GoogleIcon,
|
|
2392
|
+
image: ImageIcon,
|
|
2385
2393
|
info: InfoIcon,
|
|
2386
2394
|
"link-accounts": LinkAccountsIcon,
|
|
2387
2395
|
pencil: PencilIcon,
|
|
@@ -2415,7 +2423,7 @@ var resolveIconStyle = (color, style) => {
|
|
|
2415
2423
|
};
|
|
2416
2424
|
|
|
2417
2425
|
// src/primitives/icon/index.tsx
|
|
2418
|
-
var
|
|
2426
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2419
2427
|
var Icon = (_a) => {
|
|
2420
2428
|
var _b = _a, {
|
|
2421
2429
|
name,
|
|
@@ -2433,7 +2441,7 @@ var Icon = (_a) => {
|
|
|
2433
2441
|
const Component = iconRegistry[name];
|
|
2434
2442
|
const resolvedStyle = resolveIconStyle(color, style);
|
|
2435
2443
|
const resolvedClassName = cn(iconSizeClasses[size], className);
|
|
2436
|
-
return /* @__PURE__ */ (0,
|
|
2444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2437
2445
|
Component,
|
|
2438
2446
|
__spreadValues({
|
|
2439
2447
|
color,
|
|
@@ -2444,13 +2452,139 @@ var Icon = (_a) => {
|
|
|
2444
2452
|
};
|
|
2445
2453
|
Icon.displayName = "Icon";
|
|
2446
2454
|
|
|
2455
|
+
// src/primitives/remote-image/remote-image.constants.ts
|
|
2456
|
+
var containerClasses = "relative inline-flex shrink-0 overflow-hidden";
|
|
2457
|
+
var imageClasses = "h-full w-full object-cover";
|
|
2458
|
+
var skeletonClasses = "h-full w-full rounded-agg-lg";
|
|
2459
|
+
var placeholderClasses = "flex h-full w-full items-center justify-center bg-agg-secondary-hover rounded-agg-lg";
|
|
2460
|
+
|
|
2461
|
+
// src/primitives/remote-image/index.tsx
|
|
2462
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2463
|
+
var isValidSrc = (src) => typeof src === "string" && src.length > 0;
|
|
2464
|
+
var RemoteImage = ({
|
|
2465
|
+
src,
|
|
2466
|
+
alt,
|
|
2467
|
+
title,
|
|
2468
|
+
className,
|
|
2469
|
+
classNames,
|
|
2470
|
+
width,
|
|
2471
|
+
height,
|
|
2472
|
+
onClick,
|
|
2473
|
+
ariaLabel
|
|
2474
|
+
}) => {
|
|
2475
|
+
const [status, setStatus] = (0, import_react.useState)(
|
|
2476
|
+
() => isValidSrc(src) ? "loading" : "error"
|
|
2477
|
+
);
|
|
2478
|
+
const prevSrcRef = (0, import_react.useRef)(src);
|
|
2479
|
+
if (src !== prevSrcRef.current) {
|
|
2480
|
+
prevSrcRef.current = src;
|
|
2481
|
+
const next = isValidSrc(src) ? "loading" : "error";
|
|
2482
|
+
if (status !== next) {
|
|
2483
|
+
setStatus(next);
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
const handleLoad = () => {
|
|
2487
|
+
setStatus("loaded");
|
|
2488
|
+
};
|
|
2489
|
+
const handleError = () => {
|
|
2490
|
+
setStatus("error");
|
|
2491
|
+
};
|
|
2492
|
+
const sizeStyle = width !== void 0 || height !== void 0 ? { width: width != null ? width : void 0, height: height != null ? height : void 0 } : void 0;
|
|
2493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
2494
|
+
"div",
|
|
2495
|
+
{
|
|
2496
|
+
className: cn(containerClasses, classNames == null ? void 0 : classNames.root, className),
|
|
2497
|
+
style: sizeStyle,
|
|
2498
|
+
onClick,
|
|
2499
|
+
role: onClick ? "button" : void 0,
|
|
2500
|
+
tabIndex: onClick ? 0 : void 0,
|
|
2501
|
+
onKeyDown: onClick ? (e) => {
|
|
2502
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
2503
|
+
e.preventDefault();
|
|
2504
|
+
onClick();
|
|
2505
|
+
}
|
|
2506
|
+
} : void 0,
|
|
2507
|
+
"aria-label": ariaLabel,
|
|
2508
|
+
title,
|
|
2509
|
+
children: [
|
|
2510
|
+
status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
|
|
2511
|
+
status === "error" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2512
|
+
"div",
|
|
2513
|
+
{
|
|
2514
|
+
className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
|
|
2515
|
+
"aria-hidden": true,
|
|
2516
|
+
"aria-errormessage": "Image failed to load",
|
|
2517
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { name: "image", size: "medium", className: "text-agg-muted-foreground" })
|
|
2518
|
+
}
|
|
2519
|
+
),
|
|
2520
|
+
isValidSrc(src) && status !== "error" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2521
|
+
"img",
|
|
2522
|
+
{
|
|
2523
|
+
src,
|
|
2524
|
+
alt,
|
|
2525
|
+
width,
|
|
2526
|
+
height,
|
|
2527
|
+
onLoad: handleLoad,
|
|
2528
|
+
onError: handleError,
|
|
2529
|
+
className: cn(imageClasses, status === "loading" && "hidden", classNames == null ? void 0 : classNames.image)
|
|
2530
|
+
}
|
|
2531
|
+
)
|
|
2532
|
+
]
|
|
2533
|
+
}
|
|
2534
|
+
);
|
|
2535
|
+
};
|
|
2536
|
+
RemoteImage.displayName = "RemoteImage";
|
|
2537
|
+
|
|
2538
|
+
// src/primitives/venue-logo/index.tsx
|
|
2539
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2540
|
+
var VenueLogo = ({
|
|
2541
|
+
venue,
|
|
2542
|
+
variant = "icon",
|
|
2543
|
+
isColor = true,
|
|
2544
|
+
isMonochromatic = false,
|
|
2545
|
+
color,
|
|
2546
|
+
size = "medium",
|
|
2547
|
+
className,
|
|
2548
|
+
ariaLabel,
|
|
2549
|
+
title
|
|
2550
|
+
}) => {
|
|
2551
|
+
var _a;
|
|
2552
|
+
const labels = (0, import_hooks4.useLabels)();
|
|
2553
|
+
const sizeClass = sizeClasses[size];
|
|
2554
|
+
const resolvedLabel = (_a = ariaLabel != null ? ariaLabel : labels.venues[venue]) != null ? _a : venueLogoLabels[venue];
|
|
2555
|
+
if (variant === "logo") {
|
|
2556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2557
|
+
RemoteImage,
|
|
2558
|
+
{
|
|
2559
|
+
src: venueLogoUrlRegistry[venue],
|
|
2560
|
+
alt: resolvedLabel,
|
|
2561
|
+
title,
|
|
2562
|
+
className: cn("shrink-0 rounded-agg-lg object-cover", sizeClass, className)
|
|
2563
|
+
}
|
|
2564
|
+
);
|
|
2565
|
+
}
|
|
2566
|
+
const Component = venueLogoRegistry[venue];
|
|
2567
|
+
const resolvedIsColor = isMonochromatic ? false : isColor;
|
|
2568
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
2569
|
+
Component,
|
|
2570
|
+
{
|
|
2571
|
+
className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
|
|
2572
|
+
isColor: resolvedIsColor,
|
|
2573
|
+
color,
|
|
2574
|
+
"aria-label": resolvedLabel,
|
|
2575
|
+
title
|
|
2576
|
+
}
|
|
2577
|
+
);
|
|
2578
|
+
};
|
|
2579
|
+
VenueLogo.displayName = "VenueLogo";
|
|
2580
|
+
|
|
2447
2581
|
// src/deposit/steps/venue-selection.tsx
|
|
2448
|
-
var
|
|
2582
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2449
2583
|
var VenueRow = ({ venue, onSelect }) => {
|
|
2450
2584
|
var _a;
|
|
2451
2585
|
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
2452
2586
|
const hasShortfall = venue.shortfall != null && venue.shortfall > 0;
|
|
2453
|
-
return /* @__PURE__ */ (0,
|
|
2587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
2454
2588
|
"div",
|
|
2455
2589
|
{
|
|
2456
2590
|
className: cn(
|
|
@@ -2469,27 +2603,27 @@ var VenueRow = ({ venue, onSelect }) => {
|
|
|
2469
2603
|
}
|
|
2470
2604
|
},
|
|
2471
2605
|
children: [
|
|
2472
|
-
/* @__PURE__ */ (0,
|
|
2473
|
-
/* @__PURE__ */ (0,
|
|
2474
|
-
/* @__PURE__ */ (0,
|
|
2475
|
-
/* @__PURE__ */ (0,
|
|
2606
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
|
|
2607
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
2608
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
|
|
2609
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
2476
2610
|
"Balance ",
|
|
2477
2611
|
formatCompactUsd(venue.balance)
|
|
2478
2612
|
] })
|
|
2479
2613
|
] }),
|
|
2480
|
-
hasShortfall ? /* @__PURE__ */ (0,
|
|
2481
|
-
/* @__PURE__ */ (0,
|
|
2482
|
-
/* @__PURE__ */ (0,
|
|
2614
|
+
hasShortfall ? /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "hidden sm:flex items-center gap-1.5 shrink-0", children: [
|
|
2615
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(WarningFilledIcon, { className: "h-4 w-4 text-agg-warning" }),
|
|
2616
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "agg-type-label-strong whitespace-nowrap text-agg-warning", children: [
|
|
2483
2617
|
"Short ",
|
|
2484
2618
|
formatCompactUsd(venue.shortfall)
|
|
2485
2619
|
] })
|
|
2486
2620
|
] }) : null,
|
|
2487
|
-
/* @__PURE__ */ (0,
|
|
2621
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
2488
2622
|
Button,
|
|
2489
2623
|
{
|
|
2490
2624
|
variant: "secondary",
|
|
2491
2625
|
size: "small",
|
|
2492
|
-
suffix: /* @__PURE__ */ (0,
|
|
2626
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ChevronRightIcon, {}),
|
|
2493
2627
|
onClick: (e) => {
|
|
2494
2628
|
e.stopPropagation();
|
|
2495
2629
|
onSelect(venue.venue);
|
|
@@ -2505,22 +2639,22 @@ var VenueSelectionStep = ({
|
|
|
2505
2639
|
venues,
|
|
2506
2640
|
hasAnyShortfall,
|
|
2507
2641
|
onSelectVenue
|
|
2508
|
-
}) => /* @__PURE__ */ (0,
|
|
2509
|
-
/* @__PURE__ */ (0,
|
|
2510
|
-
/* @__PURE__ */ (0,
|
|
2511
|
-
!hasAnyShortfall ? /* @__PURE__ */ (0,
|
|
2512
|
-
/* @__PURE__ */ (0,
|
|
2642
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
|
|
2643
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Modal.Header, { title: "Deposit", hideBorder: true }),
|
|
2644
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.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_runtime61.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
2645
|
+
!hasAnyShortfall ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to deposit funds:" }) : null,
|
|
2646
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(VenueRow, { venue, onSelect: onSelectVenue }, venue.venue)) })
|
|
2513
2647
|
] }) })
|
|
2514
2648
|
] });
|
|
2515
2649
|
|
|
2516
2650
|
// src/deposit/steps/deposit-method.tsx
|
|
2517
|
-
var
|
|
2651
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2518
2652
|
var DepositMethodCard = ({
|
|
2519
2653
|
icon,
|
|
2520
2654
|
title,
|
|
2521
2655
|
description,
|
|
2522
2656
|
onContinue
|
|
2523
|
-
}) => /* @__PURE__ */ (0,
|
|
2657
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
2524
2658
|
"div",
|
|
2525
2659
|
{
|
|
2526
2660
|
className: cn(
|
|
@@ -2539,17 +2673,17 @@ var DepositMethodCard = ({
|
|
|
2539
2673
|
}
|
|
2540
2674
|
},
|
|
2541
2675
|
children: [
|
|
2542
|
-
/* @__PURE__ */ (0,
|
|
2543
|
-
/* @__PURE__ */ (0,
|
|
2544
|
-
/* @__PURE__ */ (0,
|
|
2545
|
-
/* @__PURE__ */ (0,
|
|
2676
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: icon }),
|
|
2677
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
2678
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
|
|
2679
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
|
|
2546
2680
|
] }),
|
|
2547
|
-
/* @__PURE__ */ (0,
|
|
2681
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2548
2682
|
Button,
|
|
2549
2683
|
{
|
|
2550
2684
|
variant: "secondary",
|
|
2551
2685
|
size: "small",
|
|
2552
|
-
suffix: /* @__PURE__ */ (0,
|
|
2686
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ChevronRightIcon, {}),
|
|
2553
2687
|
onClick: (e) => {
|
|
2554
2688
|
e.stopPropagation();
|
|
2555
2689
|
onContinue();
|
|
@@ -2567,47 +2701,47 @@ var DepositMethodStep = ({
|
|
|
2567
2701
|
}) => {
|
|
2568
2702
|
var _a;
|
|
2569
2703
|
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
2570
|
-
return /* @__PURE__ */ (0,
|
|
2571
|
-
/* @__PURE__ */ (0,
|
|
2704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
|
|
2705
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2572
2706
|
Modal.Header,
|
|
2573
2707
|
{
|
|
2574
2708
|
title: `Deposit to ${displayName}`,
|
|
2575
2709
|
hideBorder: true,
|
|
2576
|
-
leftElement: /* @__PURE__ */ (0,
|
|
2710
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2577
2711
|
"button",
|
|
2578
2712
|
{
|
|
2579
2713
|
type: "button",
|
|
2580
2714
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
2581
2715
|
onClick: onBack,
|
|
2582
2716
|
"aria-label": "Go back",
|
|
2583
|
-
children: /* @__PURE__ */ (0,
|
|
2717
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
2584
2718
|
}
|
|
2585
2719
|
)
|
|
2586
2720
|
}
|
|
2587
2721
|
),
|
|
2588
|
-
/* @__PURE__ */ (0,
|
|
2589
|
-
/* @__PURE__ */ (0,
|
|
2590
|
-
/* @__PURE__ */ (0,
|
|
2591
|
-
/* @__PURE__ */ (0,
|
|
2722
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.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_runtime62.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
2723
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2724
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
|
|
2725
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
2592
2726
|
displayName,
|
|
2593
2727
|
" balance: ",
|
|
2594
2728
|
formatCompactUsd(venue.balance)
|
|
2595
2729
|
] })
|
|
2596
2730
|
] }),
|
|
2597
|
-
/* @__PURE__ */ (0,
|
|
2598
|
-
/* @__PURE__ */ (0,
|
|
2731
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
2732
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2599
2733
|
DepositMethodCard,
|
|
2600
2734
|
{
|
|
2601
|
-
icon: /* @__PURE__ */ (0,
|
|
2735
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BoltIcon, { className: "h-6 w-6 text-agg-foreground" }),
|
|
2602
2736
|
title: "Transfer Crypto",
|
|
2603
2737
|
description: "Send USDC from your blockchain wallet.",
|
|
2604
2738
|
onContinue: () => onSelectMethod("crypto")
|
|
2605
2739
|
}
|
|
2606
2740
|
),
|
|
2607
|
-
/* @__PURE__ */ (0,
|
|
2741
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2608
2742
|
DepositMethodCard,
|
|
2609
2743
|
{
|
|
2610
|
-
icon: /* @__PURE__ */ (0,
|
|
2744
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(CreditCardIcon, { className: "h-6 w-6 text-agg-foreground" }),
|
|
2611
2745
|
title: "Deposit with Card",
|
|
2612
2746
|
description: "Buy USDC instantly with a debit or credit card.",
|
|
2613
2747
|
onContinue: () => onSelectMethod("card")
|
|
@@ -2619,12 +2753,12 @@ var DepositMethodStep = ({
|
|
|
2619
2753
|
};
|
|
2620
2754
|
|
|
2621
2755
|
// src/deposit/steps/card-deposit.tsx
|
|
2622
|
-
var
|
|
2756
|
+
var import_react3 = require("react");
|
|
2623
2757
|
|
|
2624
2758
|
// src/primitives/select/index.tsx
|
|
2625
|
-
var
|
|
2626
|
-
var
|
|
2627
|
-
var
|
|
2759
|
+
var import_react2 = require("react");
|
|
2760
|
+
var import_hooks5 = require("@agg-market/hooks");
|
|
2761
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2628
2762
|
var Select = ({
|
|
2629
2763
|
items,
|
|
2630
2764
|
value,
|
|
@@ -2634,14 +2768,14 @@ var Select = ({
|
|
|
2634
2768
|
disabled = false
|
|
2635
2769
|
}) => {
|
|
2636
2770
|
var _a;
|
|
2637
|
-
const labels = (0,
|
|
2638
|
-
const { enableAnimations } = (0,
|
|
2771
|
+
const labels = (0, import_hooks5.useLabels)();
|
|
2772
|
+
const { enableAnimations } = (0, import_hooks5.useSdkUiConfig)();
|
|
2639
2773
|
const hasEnabledItems = items.some((item) => !item.disabled);
|
|
2640
2774
|
const hasAnyIcon = items.some((item) => item.iconUrl);
|
|
2641
|
-
const [isOpen, setIsOpen] = (0,
|
|
2642
|
-
const containerRef = (0,
|
|
2643
|
-
const close = (0,
|
|
2644
|
-
(0,
|
|
2775
|
+
const [isOpen, setIsOpen] = (0, import_react2.useState)(false);
|
|
2776
|
+
const containerRef = (0, import_react2.useRef)(null);
|
|
2777
|
+
const close = (0, import_react2.useCallback)(() => setIsOpen(false), []);
|
|
2778
|
+
(0, import_react2.useEffect)(() => {
|
|
2645
2779
|
if (!isOpen)
|
|
2646
2780
|
return;
|
|
2647
2781
|
const handlePointerDown = (e) => {
|
|
@@ -2652,7 +2786,7 @@ var Select = ({
|
|
|
2652
2786
|
document.addEventListener("mousedown", handlePointerDown);
|
|
2653
2787
|
return () => document.removeEventListener("mousedown", handlePointerDown);
|
|
2654
2788
|
}, [isOpen, close]);
|
|
2655
|
-
(0,
|
|
2789
|
+
(0, import_react2.useEffect)(() => {
|
|
2656
2790
|
if (!isOpen)
|
|
2657
2791
|
return;
|
|
2658
2792
|
const handleKey = (e) => {
|
|
@@ -2665,8 +2799,8 @@ var Select = ({
|
|
|
2665
2799
|
const isDisabled = disabled || !hasEnabledItems;
|
|
2666
2800
|
const selectedItem = items.find((item) => item.value === value);
|
|
2667
2801
|
if (!hasAnyIcon) {
|
|
2668
|
-
return /* @__PURE__ */ (0,
|
|
2669
|
-
/* @__PURE__ */ (0,
|
|
2802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { className: cn("group/agg-select", "relative inline-flex w-full", className), children: [
|
|
2803
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2670
2804
|
"select",
|
|
2671
2805
|
{
|
|
2672
2806
|
"aria-label": ariaLabel != null ? ariaLabel : labels.common.selectAria,
|
|
@@ -2682,19 +2816,19 @@ var Select = ({
|
|
|
2682
2816
|
disabled: isDisabled,
|
|
2683
2817
|
value,
|
|
2684
2818
|
onChange: (event) => onChange(event.target.value),
|
|
2685
|
-
children: items.map((item) => /* @__PURE__ */ (0,
|
|
2819
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("option", { value: item.value, disabled: item.disabled, children: item.label }, item.value))
|
|
2686
2820
|
}
|
|
2687
2821
|
),
|
|
2688
|
-
/* @__PURE__ */ (0,
|
|
2822
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) })
|
|
2689
2823
|
] });
|
|
2690
2824
|
}
|
|
2691
|
-
return /* @__PURE__ */ (0,
|
|
2825
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2692
2826
|
"div",
|
|
2693
2827
|
{
|
|
2694
2828
|
ref: containerRef,
|
|
2695
2829
|
className: cn("group/agg-select", "relative inline-flex w-full", className),
|
|
2696
2830
|
children: [
|
|
2697
|
-
/* @__PURE__ */ (0,
|
|
2831
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2698
2832
|
"button",
|
|
2699
2833
|
{
|
|
2700
2834
|
type: "button",
|
|
@@ -2714,20 +2848,20 @@ var Select = ({
|
|
|
2714
2848
|
),
|
|
2715
2849
|
onClick: () => setIsOpen((prev) => !prev),
|
|
2716
2850
|
children: [
|
|
2717
|
-
(selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0,
|
|
2718
|
-
|
|
2851
|
+
(selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2852
|
+
RemoteImage,
|
|
2719
2853
|
{
|
|
2720
2854
|
src: selectedItem.iconUrl,
|
|
2721
2855
|
alt: "",
|
|
2722
2856
|
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
2723
2857
|
}
|
|
2724
2858
|
) : null,
|
|
2725
|
-
/* @__PURE__ */ (0,
|
|
2859
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
|
|
2726
2860
|
]
|
|
2727
2861
|
}
|
|
2728
2862
|
),
|
|
2729
|
-
/* @__PURE__ */ (0,
|
|
2730
|
-
isOpen ? /* @__PURE__ */ (0,
|
|
2863
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { name: "chevron-down", size: "small", color: "currentColor" }) }),
|
|
2864
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2731
2865
|
"div",
|
|
2732
2866
|
{
|
|
2733
2867
|
role: "listbox",
|
|
@@ -2735,7 +2869,7 @@ var Select = ({
|
|
|
2735
2869
|
className: "absolute top-full left-0 z-50 mt-1 w-full overflow-hidden rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
|
|
2736
2870
|
children: items.map((item) => {
|
|
2737
2871
|
const isSelected = item.value === value;
|
|
2738
|
-
return /* @__PURE__ */ (0,
|
|
2872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2739
2873
|
"button",
|
|
2740
2874
|
{
|
|
2741
2875
|
type: "button",
|
|
@@ -2755,15 +2889,15 @@ var Select = ({
|
|
|
2755
2889
|
}
|
|
2756
2890
|
},
|
|
2757
2891
|
children: [
|
|
2758
|
-
item.iconUrl ? /* @__PURE__ */ (0,
|
|
2759
|
-
|
|
2892
|
+
item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2893
|
+
RemoteImage,
|
|
2760
2894
|
{
|
|
2761
2895
|
src: item.iconUrl,
|
|
2762
2896
|
alt: "",
|
|
2763
2897
|
className: "h-4 w-4 shrink-0 rounded-sm object-contain"
|
|
2764
2898
|
}
|
|
2765
2899
|
) : null,
|
|
2766
|
-
/* @__PURE__ */ (0,
|
|
2900
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "truncate", children: item.label })
|
|
2767
2901
|
]
|
|
2768
2902
|
},
|
|
2769
2903
|
item.value
|
|
@@ -2778,52 +2912,52 @@ var Select = ({
|
|
|
2778
2912
|
Select.displayName = "Select";
|
|
2779
2913
|
|
|
2780
2914
|
// src/deposit/steps/card-deposit.tsx
|
|
2781
|
-
var
|
|
2915
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2782
2916
|
var CardDepositStep = ({
|
|
2783
2917
|
venue,
|
|
2784
2918
|
onBack,
|
|
2785
2919
|
onContinue
|
|
2786
2920
|
}) => {
|
|
2787
2921
|
var _a;
|
|
2788
|
-
const [rawAmount, setRawAmount] = (0,
|
|
2922
|
+
const [rawAmount, setRawAmount] = (0, import_react3.useState)("");
|
|
2789
2923
|
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
2790
2924
|
const numericAmount = Number(rawAmount) || 0;
|
|
2791
2925
|
const isValid = numericAmount > 0;
|
|
2792
|
-
const handleAmountChange = (0,
|
|
2926
|
+
const handleAmountChange = (0, import_react3.useCallback)((e) => {
|
|
2793
2927
|
const v = e.target.value.replace(/[^0-9.]/g, "");
|
|
2794
2928
|
const parts = v.split(".");
|
|
2795
2929
|
const sanitized = parts.length > 2 ? `${parts[0]}.${parts.slice(1).join("")}` : v;
|
|
2796
2930
|
setRawAmount(sanitized);
|
|
2797
2931
|
}, []);
|
|
2798
|
-
return /* @__PURE__ */ (0,
|
|
2799
|
-
/* @__PURE__ */ (0,
|
|
2932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
2933
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2800
2934
|
Modal.Header,
|
|
2801
2935
|
{
|
|
2802
2936
|
title: `Deposit to ${displayName}`,
|
|
2803
2937
|
hideBorder: true,
|
|
2804
|
-
leftElement: /* @__PURE__ */ (0,
|
|
2938
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2805
2939
|
"button",
|
|
2806
2940
|
{
|
|
2807
2941
|
type: "button",
|
|
2808
2942
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
2809
2943
|
onClick: onBack,
|
|
2810
2944
|
"aria-label": "Go back",
|
|
2811
|
-
children: /* @__PURE__ */ (0,
|
|
2945
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
2812
2946
|
}
|
|
2813
2947
|
)
|
|
2814
2948
|
}
|
|
2815
2949
|
),
|
|
2816
|
-
/* @__PURE__ */ (0,
|
|
2817
|
-
/* @__PURE__ */ (0,
|
|
2818
|
-
/* @__PURE__ */ (0,
|
|
2819
|
-
/* @__PURE__ */ (0,
|
|
2950
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.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_runtime64.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
2951
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
2952
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
|
|
2953
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
2820
2954
|
displayName,
|
|
2821
2955
|
" balance: ",
|
|
2822
2956
|
formatCompactUsd(venue.balance)
|
|
2823
2957
|
] })
|
|
2824
2958
|
] }),
|
|
2825
|
-
/* @__PURE__ */ (0,
|
|
2826
|
-
/* @__PURE__ */ (0,
|
|
2959
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
2960
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2827
2961
|
Select,
|
|
2828
2962
|
{
|
|
2829
2963
|
items: [{ value: "USD", label: "USD" }],
|
|
@@ -2834,9 +2968,9 @@ var CardDepositStep = ({
|
|
|
2834
2968
|
className: "w-auto"
|
|
2835
2969
|
}
|
|
2836
2970
|
) }),
|
|
2837
|
-
/* @__PURE__ */ (0,
|
|
2838
|
-
/* @__PURE__ */ (0,
|
|
2839
|
-
/* @__PURE__ */ (0,
|
|
2971
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-baseline", children: [
|
|
2972
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
|
|
2973
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2840
2974
|
"input",
|
|
2841
2975
|
{
|
|
2842
2976
|
type: "text",
|
|
@@ -2853,7 +2987,7 @@ var CardDepositStep = ({
|
|
|
2853
2987
|
)
|
|
2854
2988
|
] }) })
|
|
2855
2989
|
] }),
|
|
2856
|
-
/* @__PURE__ */ (0,
|
|
2990
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
2857
2991
|
"div",
|
|
2858
2992
|
{
|
|
2859
2993
|
className: cn(
|
|
@@ -2865,18 +2999,18 @@ var CardDepositStep = ({
|
|
|
2865
2999
|
role: "button",
|
|
2866
3000
|
tabIndex: 0,
|
|
2867
3001
|
children: [
|
|
2868
|
-
/* @__PURE__ */ (0,
|
|
2869
|
-
/* @__PURE__ */ (0,
|
|
2870
|
-
/* @__PURE__ */ (0,
|
|
3002
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
3003
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: "Provider" }),
|
|
3004
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: "Auto-picked for you" })
|
|
2871
3005
|
] }),
|
|
2872
|
-
/* @__PURE__ */ (0,
|
|
2873
|
-
/* @__PURE__ */ (0,
|
|
2874
|
-
/* @__PURE__ */ (0,
|
|
3006
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
3007
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "agg-type-label-strong text-agg-foreground", children: "Swapped" }),
|
|
3008
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ChevronRightIcon, { className: "h-4 w-4 text-agg-foreground" })
|
|
2875
3009
|
] })
|
|
2876
3010
|
]
|
|
2877
3011
|
}
|
|
2878
3012
|
),
|
|
2879
|
-
/* @__PURE__ */ (0,
|
|
3013
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
2880
3014
|
Button,
|
|
2881
3015
|
{
|
|
2882
3016
|
variant: "primary",
|
|
@@ -2892,7 +3026,7 @@ var CardDepositStep = ({
|
|
|
2892
3026
|
};
|
|
2893
3027
|
|
|
2894
3028
|
// src/deposit/steps/crypto-transfer.tsx
|
|
2895
|
-
var
|
|
3029
|
+
var import_react4 = require("react");
|
|
2896
3030
|
|
|
2897
3031
|
// src/shared/constants.ts
|
|
2898
3032
|
var USDC = {
|
|
@@ -2939,7 +3073,7 @@ var getTokensForNetwork = (networkValue) => {
|
|
|
2939
3073
|
};
|
|
2940
3074
|
|
|
2941
3075
|
// src/deposit/steps/crypto-transfer.tsx
|
|
2942
|
-
var
|
|
3076
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2943
3077
|
var CryptoTransferStep = ({
|
|
2944
3078
|
venue,
|
|
2945
3079
|
onBack,
|
|
@@ -2948,8 +3082,8 @@ var CryptoTransferStep = ({
|
|
|
2948
3082
|
var _a, _b, _c, _d, _e;
|
|
2949
3083
|
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
2950
3084
|
const defaultNetwork = (_c = (_b = SUPPORTED_NETWORKS[0]) == null ? void 0 : _b.value) != null ? _c : "";
|
|
2951
|
-
const [selectedNetwork, setSelectedNetwork] = (0,
|
|
2952
|
-
const tokenItems = (0,
|
|
3085
|
+
const [selectedNetwork, setSelectedNetwork] = (0, import_react4.useState)(defaultNetwork);
|
|
3086
|
+
const tokenItems = (0, import_react4.useMemo)(() => {
|
|
2953
3087
|
const tokens = getTokensForNetwork(selectedNetwork);
|
|
2954
3088
|
return tokens.map((t) => ({
|
|
2955
3089
|
value: t.value,
|
|
@@ -2957,8 +3091,8 @@ var CryptoTransferStep = ({
|
|
|
2957
3091
|
iconUrl: t.iconUrl
|
|
2958
3092
|
}));
|
|
2959
3093
|
}, [selectedNetwork]);
|
|
2960
|
-
const [selectedToken, setSelectedToken] = (0,
|
|
2961
|
-
const networkItems = (0,
|
|
3094
|
+
const [selectedToken, setSelectedToken] = (0, import_react4.useState)((_e = (_d = tokenItems[0]) == null ? void 0 : _d.value) != null ? _e : "");
|
|
3095
|
+
const networkItems = (0, import_react4.useMemo)(
|
|
2962
3096
|
() => SUPPORTED_NETWORKS.map((n) => ({
|
|
2963
3097
|
value: n.value,
|
|
2964
3098
|
label: n.label,
|
|
@@ -2966,40 +3100,40 @@ var CryptoTransferStep = ({
|
|
|
2966
3100
|
})),
|
|
2967
3101
|
[]
|
|
2968
3102
|
);
|
|
2969
|
-
const handleNetworkChange = (0,
|
|
3103
|
+
const handleNetworkChange = (0, import_react4.useCallback)((networkValue) => {
|
|
2970
3104
|
var _a2, _b2;
|
|
2971
3105
|
setSelectedNetwork(networkValue);
|
|
2972
3106
|
const tokens = getTokensForNetwork(networkValue);
|
|
2973
3107
|
setSelectedToken((_b2 = (_a2 = tokens[0]) == null ? void 0 : _a2.value) != null ? _b2 : "");
|
|
2974
3108
|
}, []);
|
|
2975
3109
|
const depositAddress = "82nbtQamxV3KPZtyRMXjrQ4xwQJMRcXn2PYmpfQyq5UK";
|
|
2976
|
-
const handleCopyAddress = (0,
|
|
3110
|
+
const handleCopyAddress = (0, import_react4.useCallback)(() => {
|
|
2977
3111
|
void navigator.clipboard.writeText(depositAddress);
|
|
2978
3112
|
}, [depositAddress]);
|
|
2979
|
-
return /* @__PURE__ */ (0,
|
|
2980
|
-
/* @__PURE__ */ (0,
|
|
3113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
3114
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2981
3115
|
Modal.Header,
|
|
2982
3116
|
{
|
|
2983
3117
|
title: `Deposit to ${displayName}`,
|
|
2984
3118
|
hideBorder: true,
|
|
2985
|
-
leftElement: /* @__PURE__ */ (0,
|
|
3119
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
2986
3120
|
"button",
|
|
2987
3121
|
{
|
|
2988
3122
|
type: "button",
|
|
2989
3123
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
2990
3124
|
onClick: onBack,
|
|
2991
3125
|
"aria-label": "Go back",
|
|
2992
|
-
children: /* @__PURE__ */ (0,
|
|
3126
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
2993
3127
|
}
|
|
2994
3128
|
)
|
|
2995
3129
|
}
|
|
2996
3130
|
),
|
|
2997
|
-
/* @__PURE__ */ (0,
|
|
2998
|
-
/* @__PURE__ */ (0,
|
|
2999
|
-
/* @__PURE__ */ (0,
|
|
3000
|
-
/* @__PURE__ */ (0,
|
|
3001
|
-
/* @__PURE__ */ (0,
|
|
3002
|
-
/* @__PURE__ */ (0,
|
|
3131
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.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_runtime65.jsxs)("div", { className: "flex flex-col gap-7", children: [
|
|
3132
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col gap-5", children: [
|
|
3133
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex gap-6", children: [
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
3135
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported token" }),
|
|
3136
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3003
3137
|
Select,
|
|
3004
3138
|
{
|
|
3005
3139
|
items: tokenItems,
|
|
@@ -3009,9 +3143,9 @@ var CryptoTransferStep = ({
|
|
|
3009
3143
|
}
|
|
3010
3144
|
)
|
|
3011
3145
|
] }),
|
|
3012
|
-
/* @__PURE__ */ (0,
|
|
3013
|
-
/* @__PURE__ */ (0,
|
|
3014
|
-
/* @__PURE__ */ (0,
|
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
|
|
3147
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported network" }),
|
|
3148
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3015
3149
|
Select,
|
|
3016
3150
|
{
|
|
3017
3151
|
items: networkItems,
|
|
@@ -3022,9 +3156,9 @@ var CryptoTransferStep = ({
|
|
|
3022
3156
|
)
|
|
3023
3157
|
] })
|
|
3024
3158
|
] }),
|
|
3025
|
-
/* @__PURE__ */ (0,
|
|
3026
|
-
/* @__PURE__ */ (0,
|
|
3027
|
-
/* @__PURE__ */ (0,
|
|
3159
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
3160
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Your deposit address" }),
|
|
3161
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
3028
3162
|
"div",
|
|
3029
3163
|
{
|
|
3030
3164
|
className: cn(
|
|
@@ -3033,15 +3167,15 @@ var CryptoTransferStep = ({
|
|
|
3033
3167
|
"h-10 px-3"
|
|
3034
3168
|
),
|
|
3035
3169
|
children: [
|
|
3036
|
-
/* @__PURE__ */ (0,
|
|
3037
|
-
/* @__PURE__ */ (0,
|
|
3170
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: depositAddress }),
|
|
3171
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3038
3172
|
"button",
|
|
3039
3173
|
{
|
|
3040
3174
|
type: "button",
|
|
3041
3175
|
className: "shrink-0 text-agg-muted-foreground transition-colors hover:text-agg-foreground",
|
|
3042
3176
|
onClick: handleCopyAddress,
|
|
3043
3177
|
"aria-label": "Copy deposit address",
|
|
3044
|
-
children: /* @__PURE__ */ (0,
|
|
3178
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CopyIcon, { className: "h-4 w-4" })
|
|
3045
3179
|
}
|
|
3046
3180
|
)
|
|
3047
3181
|
]
|
|
@@ -3049,33 +3183,33 @@ var CryptoTransferStep = ({
|
|
|
3049
3183
|
)
|
|
3050
3184
|
] })
|
|
3051
3185
|
] }),
|
|
3052
|
-
/* @__PURE__ */ (0,
|
|
3186
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Button, { variant: "secondary", size: "large", className: "w-full", onClick: onDone, children: "Done" })
|
|
3053
3187
|
] }) })
|
|
3054
3188
|
] });
|
|
3055
3189
|
};
|
|
3056
3190
|
|
|
3057
3191
|
// src/deposit/steps/kalshi-deposit.tsx
|
|
3058
|
-
var
|
|
3192
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3059
3193
|
var KalshiStepCard = ({
|
|
3060
3194
|
step,
|
|
3061
3195
|
title,
|
|
3062
3196
|
description,
|
|
3063
3197
|
children
|
|
3064
|
-
}) => /* @__PURE__ */ (0,
|
|
3065
|
-
/* @__PURE__ */ (0,
|
|
3198
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col gap-2 rounded-xl bg-agg-secondary-hover p-4", children: [
|
|
3199
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
|
|
3066
3200
|
"Step ",
|
|
3067
3201
|
step
|
|
3068
3202
|
] }),
|
|
3069
|
-
/* @__PURE__ */ (0,
|
|
3070
|
-
/* @__PURE__ */ (0,
|
|
3071
|
-
/* @__PURE__ */ (0,
|
|
3203
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
3204
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
|
|
3205
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "agg-type-label text-agg-foreground", children: description })
|
|
3072
3206
|
] }),
|
|
3073
3207
|
children
|
|
3074
3208
|
] });
|
|
3075
|
-
var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0,
|
|
3076
|
-
/* @__PURE__ */ (0,
|
|
3077
|
-
/* @__PURE__ */ (0,
|
|
3078
|
-
/* @__PURE__ */ (0,
|
|
3209
|
+
var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
3210
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Modal.Header, { title: "", hideBorder: true }),
|
|
3211
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.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_runtime66.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
|
|
3212
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3079
3213
|
VenueLogo,
|
|
3080
3214
|
{
|
|
3081
3215
|
venue: "kalshi",
|
|
@@ -3083,23 +3217,23 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
|
|
|
3083
3217
|
className: "h-[60px] w-[60px] rounded-lg"
|
|
3084
3218
|
}
|
|
3085
3219
|
),
|
|
3086
|
-
/* @__PURE__ */ (0,
|
|
3087
|
-
/* @__PURE__ */ (0,
|
|
3088
|
-
/* @__PURE__ */ (0,
|
|
3220
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col items-center gap-4 text-center", children: [
|
|
3221
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: "Fund Your Kalshi Account" }),
|
|
3222
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "To trade on Kalshi you'll need to add funds to your Kalshi balance first. You can do this on Kalshi's site." })
|
|
3089
3223
|
] }),
|
|
3090
|
-
/* @__PURE__ */ (0,
|
|
3091
|
-
/* @__PURE__ */ (0,
|
|
3224
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex w-full flex-col gap-4", children: [
|
|
3225
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3092
3226
|
KalshiStepCard,
|
|
3093
3227
|
{
|
|
3094
3228
|
step: 1,
|
|
3095
3229
|
title: "Open Kalshi Deposit Page",
|
|
3096
3230
|
description: "Sign in to your Kalshi account and go to Deposit (Add Funds) from your account menu.",
|
|
3097
|
-
children: /* @__PURE__ */ (0,
|
|
3231
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3098
3232
|
Button,
|
|
3099
3233
|
{
|
|
3100
3234
|
variant: "secondary",
|
|
3101
3235
|
size: "small",
|
|
3102
|
-
suffix: /* @__PURE__ */ (0,
|
|
3236
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
|
|
3103
3237
|
onClick: () => {
|
|
3104
3238
|
window.open(depositUrl, "_blank", "noopener,noreferrer");
|
|
3105
3239
|
},
|
|
@@ -3108,7 +3242,7 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
|
|
|
3108
3242
|
) })
|
|
3109
3243
|
}
|
|
3110
3244
|
),
|
|
3111
|
-
/* @__PURE__ */ (0,
|
|
3245
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3112
3246
|
KalshiStepCard,
|
|
3113
3247
|
{
|
|
3114
3248
|
step: 2,
|
|
@@ -3116,7 +3250,7 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
|
|
|
3116
3250
|
description: "Select a deposit method: Bank transfer (ACH), Debit card, Wire, or USDC (crypto)."
|
|
3117
3251
|
}
|
|
3118
3252
|
),
|
|
3119
|
-
/* @__PURE__ */ (0,
|
|
3253
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3120
3254
|
KalshiStepCard,
|
|
3121
3255
|
{
|
|
3122
3256
|
step: 3,
|
|
@@ -3125,12 +3259,12 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
|
|
|
3125
3259
|
}
|
|
3126
3260
|
)
|
|
3127
3261
|
] }),
|
|
3128
|
-
/* @__PURE__ */ (0,
|
|
3262
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
|
|
3129
3263
|
] }) })
|
|
3130
3264
|
] });
|
|
3131
3265
|
|
|
3132
3266
|
// src/deposit/index.tsx
|
|
3133
|
-
var
|
|
3267
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3134
3268
|
var DepositModal = ({
|
|
3135
3269
|
open,
|
|
3136
3270
|
onOpenChange,
|
|
@@ -3142,8 +3276,8 @@ var DepositModal = ({
|
|
|
3142
3276
|
onDoneKalshi,
|
|
3143
3277
|
kalshiDepositUrl = KALSHI_DEPOSIT_URL_DEFAULT
|
|
3144
3278
|
}) => {
|
|
3145
|
-
const [step, setStep] = (0,
|
|
3146
|
-
const [selectedVenue, setSelectedVenue] = (0,
|
|
3279
|
+
const [step, setStep] = (0, import_react5.useState)("venues");
|
|
3280
|
+
const [selectedVenue, setSelectedVenue] = (0, import_react5.useState)(null);
|
|
3147
3281
|
const hasAnyShortfall = venues.some((v) => v.shortfall != null && v.shortfall > 0);
|
|
3148
3282
|
const handleSelectVenue = (venueSlug) => {
|
|
3149
3283
|
onSelectVenue(venueSlug);
|
|
@@ -3195,8 +3329,8 @@ var DepositModal = ({
|
|
|
3195
3329
|
}
|
|
3196
3330
|
onOpenChange(isOpen);
|
|
3197
3331
|
};
|
|
3198
|
-
return /* @__PURE__ */ (0,
|
|
3199
|
-
step === "venues" ? /* @__PURE__ */ (0,
|
|
3332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Deposit", children: [
|
|
3333
|
+
step === "venues" ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3200
3334
|
VenueSelectionStep,
|
|
3201
3335
|
{
|
|
3202
3336
|
venues,
|
|
@@ -3204,7 +3338,7 @@ var DepositModal = ({
|
|
|
3204
3338
|
onSelectVenue: handleSelectVenue
|
|
3205
3339
|
}
|
|
3206
3340
|
) : null,
|
|
3207
|
-
step === "method" && selectedVenue ? /* @__PURE__ */ (0,
|
|
3341
|
+
step === "method" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3208
3342
|
DepositMethodStep,
|
|
3209
3343
|
{
|
|
3210
3344
|
venue: selectedVenue,
|
|
@@ -3212,7 +3346,7 @@ var DepositModal = ({
|
|
|
3212
3346
|
onSelectMethod: handleSelectMethod
|
|
3213
3347
|
}
|
|
3214
3348
|
) : null,
|
|
3215
|
-
step === "card-deposit" && selectedVenue ? /* @__PURE__ */ (0,
|
|
3349
|
+
step === "card-deposit" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3216
3350
|
CardDepositStep,
|
|
3217
3351
|
{
|
|
3218
3352
|
venue: selectedVenue,
|
|
@@ -3220,7 +3354,7 @@ var DepositModal = ({
|
|
|
3220
3354
|
onContinue: handleContinueCardDeposit
|
|
3221
3355
|
}
|
|
3222
3356
|
) : null,
|
|
3223
|
-
step === "crypto-transfer" && selectedVenue ? /* @__PURE__ */ (0,
|
|
3357
|
+
step === "crypto-transfer" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3224
3358
|
CryptoTransferStep,
|
|
3225
3359
|
{
|
|
3226
3360
|
venue: selectedVenue,
|
|
@@ -3228,25 +3362,25 @@ var DepositModal = ({
|
|
|
3228
3362
|
onDone: handleDoneCryptoTransfer
|
|
3229
3363
|
}
|
|
3230
3364
|
) : null,
|
|
3231
|
-
step === "kalshi" ? /* @__PURE__ */ (0,
|
|
3365
|
+
step === "kalshi" ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(KalshiDepositStep, { depositUrl: kalshiDepositUrl, onDone: handleDoneKalshi }) : null
|
|
3232
3366
|
] }) });
|
|
3233
3367
|
};
|
|
3234
3368
|
DepositModal.displayName = "DepositModal";
|
|
3235
3369
|
|
|
3236
3370
|
// src/withdraw/index.tsx
|
|
3237
|
-
var
|
|
3371
|
+
var import_react7 = require("react");
|
|
3238
3372
|
|
|
3239
3373
|
// src/withdraw/withdraw-modal.constants.ts
|
|
3240
3374
|
var KALSHI_VENUE2 = "kalshi";
|
|
3241
3375
|
var KALSHI_WITHDRAW_URL_DEFAULT = "https://kalshi.com/account/withdraw";
|
|
3242
3376
|
|
|
3243
3377
|
// src/withdraw/steps/venue-selection.tsx
|
|
3244
|
-
var
|
|
3378
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3245
3379
|
var VenueRow2 = ({ venue, onSelect }) => {
|
|
3246
3380
|
var _a, _b;
|
|
3247
3381
|
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
3248
3382
|
const isDisabled = venue.disabled === true;
|
|
3249
|
-
return /* @__PURE__ */ (0,
|
|
3383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
3250
3384
|
"div",
|
|
3251
3385
|
{
|
|
3252
3386
|
className: cn(
|
|
@@ -3270,20 +3404,20 @@ var VenueRow2 = ({ venue, onSelect }) => {
|
|
|
3270
3404
|
}
|
|
3271
3405
|
},
|
|
3272
3406
|
children: [
|
|
3273
|
-
/* @__PURE__ */ (0,
|
|
3274
|
-
/* @__PURE__ */ (0,
|
|
3275
|
-
/* @__PURE__ */ (0,
|
|
3276
|
-
/* @__PURE__ */ (0,
|
|
3407
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
|
|
3408
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
3409
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
|
|
3410
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
3277
3411
|
"Balance ",
|
|
3278
3412
|
formatCompactUsd(venue.balance)
|
|
3279
3413
|
] })
|
|
3280
3414
|
] }),
|
|
3281
|
-
isDisabled ? /* @__PURE__ */ (0,
|
|
3415
|
+
isDisabled ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "agg-type-label text-agg-muted-foreground", children: (_b = venue.disabledReason) != null ? _b : "Unavailable" }) }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3282
3416
|
Button,
|
|
3283
3417
|
{
|
|
3284
3418
|
variant: "secondary",
|
|
3285
3419
|
size: "small",
|
|
3286
|
-
suffix: /* @__PURE__ */ (0,
|
|
3420
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(ChevronRightIcon, {}),
|
|
3287
3421
|
onClick: (e) => {
|
|
3288
3422
|
e.stopPropagation();
|
|
3289
3423
|
onSelect(venue.venue);
|
|
@@ -3298,22 +3432,22 @@ var VenueRow2 = ({ venue, onSelect }) => {
|
|
|
3298
3432
|
var VenueSelectionStep2 = ({
|
|
3299
3433
|
venues,
|
|
3300
3434
|
onSelectVenue
|
|
3301
|
-
}) => /* @__PURE__ */ (0,
|
|
3302
|
-
/* @__PURE__ */ (0,
|
|
3303
|
-
/* @__PURE__ */ (0,
|
|
3304
|
-
/* @__PURE__ */ (0,
|
|
3305
|
-
/* @__PURE__ */ (0,
|
|
3435
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
3436
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Modal.Header, { title: "Withdraw", hideBorder: true }),
|
|
3437
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.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_runtime68.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
3438
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to withdraw funds from:" }),
|
|
3439
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(VenueRow2, { venue, onSelect: onSelectVenue }, venue.venue)) })
|
|
3306
3440
|
] }) })
|
|
3307
3441
|
] });
|
|
3308
3442
|
|
|
3309
3443
|
// src/withdraw/steps/withdraw-method.tsx
|
|
3310
|
-
var
|
|
3444
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3311
3445
|
var WithdrawMethodCard = ({
|
|
3312
3446
|
icon,
|
|
3313
3447
|
title,
|
|
3314
3448
|
description,
|
|
3315
3449
|
onContinue
|
|
3316
|
-
}) => /* @__PURE__ */ (0,
|
|
3450
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
3317
3451
|
"div",
|
|
3318
3452
|
{
|
|
3319
3453
|
className: cn(
|
|
@@ -3332,17 +3466,17 @@ var WithdrawMethodCard = ({
|
|
|
3332
3466
|
}
|
|
3333
3467
|
},
|
|
3334
3468
|
children: [
|
|
3335
|
-
/* @__PURE__ */ (0,
|
|
3336
|
-
/* @__PURE__ */ (0,
|
|
3337
|
-
/* @__PURE__ */ (0,
|
|
3338
|
-
/* @__PURE__ */ (0,
|
|
3469
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: icon }),
|
|
3470
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
3471
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
|
|
3472
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
|
|
3339
3473
|
] }),
|
|
3340
|
-
/* @__PURE__ */ (0,
|
|
3474
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3341
3475
|
Button,
|
|
3342
3476
|
{
|
|
3343
3477
|
variant: "secondary",
|
|
3344
3478
|
size: "small",
|
|
3345
|
-
suffix: /* @__PURE__ */ (0,
|
|
3479
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChevronRightIcon, {}),
|
|
3346
3480
|
onClick: (e) => {
|
|
3347
3481
|
e.stopPropagation();
|
|
3348
3482
|
onContinue();
|
|
@@ -3360,47 +3494,47 @@ var WithdrawMethodStep = ({
|
|
|
3360
3494
|
}) => {
|
|
3361
3495
|
var _a;
|
|
3362
3496
|
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
3363
|
-
return /* @__PURE__ */ (0,
|
|
3364
|
-
/* @__PURE__ */ (0,
|
|
3497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
3498
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3365
3499
|
Modal.Header,
|
|
3366
3500
|
{
|
|
3367
3501
|
title: `Withdraw from ${displayName}`,
|
|
3368
3502
|
hideBorder: true,
|
|
3369
|
-
leftElement: /* @__PURE__ */ (0,
|
|
3503
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3370
3504
|
"button",
|
|
3371
3505
|
{
|
|
3372
3506
|
type: "button",
|
|
3373
3507
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
3374
3508
|
onClick: onBack,
|
|
3375
3509
|
"aria-label": "Go back",
|
|
3376
|
-
children: /* @__PURE__ */ (0,
|
|
3510
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
3377
3511
|
}
|
|
3378
3512
|
)
|
|
3379
3513
|
}
|
|
3380
3514
|
),
|
|
3381
|
-
/* @__PURE__ */ (0,
|
|
3382
|
-
/* @__PURE__ */ (0,
|
|
3383
|
-
/* @__PURE__ */ (0,
|
|
3384
|
-
/* @__PURE__ */ (0,
|
|
3515
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.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_runtime69.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
3516
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
3517
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
|
|
3518
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
3385
3519
|
displayName,
|
|
3386
3520
|
" balance: ",
|
|
3387
3521
|
formatCompactUsd(venue.balance)
|
|
3388
3522
|
] })
|
|
3389
3523
|
] }),
|
|
3390
|
-
/* @__PURE__ */ (0,
|
|
3391
|
-
/* @__PURE__ */ (0,
|
|
3524
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
3525
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3392
3526
|
WithdrawMethodCard,
|
|
3393
3527
|
{
|
|
3394
|
-
icon: /* @__PURE__ */ (0,
|
|
3528
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-foreground" }),
|
|
3395
3529
|
title: "Withdraw to Wallet",
|
|
3396
3530
|
description: "Send funds to your crypto wallet as USDC.",
|
|
3397
3531
|
onContinue: () => onSelectMethod("wallet")
|
|
3398
3532
|
}
|
|
3399
3533
|
),
|
|
3400
|
-
/* @__PURE__ */ (0,
|
|
3534
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3401
3535
|
WithdrawMethodCard,
|
|
3402
3536
|
{
|
|
3403
|
-
icon: /* @__PURE__ */ (0,
|
|
3537
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(BankIcon, { className: "h-6 w-6 text-agg-foreground" }),
|
|
3404
3538
|
title: "Withdraw to Bank",
|
|
3405
3539
|
description: "Transfer funds to your linked bank account.",
|
|
3406
3540
|
onContinue: () => onSelectMethod("bank")
|
|
@@ -3412,8 +3546,8 @@ var WithdrawMethodStep = ({
|
|
|
3412
3546
|
};
|
|
3413
3547
|
|
|
3414
3548
|
// src/withdraw/steps/withdraw-amount.tsx
|
|
3415
|
-
var
|
|
3416
|
-
var
|
|
3549
|
+
var import_react6 = require("react");
|
|
3550
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3417
3551
|
var WithdrawAmountStep = ({
|
|
3418
3552
|
venue,
|
|
3419
3553
|
method,
|
|
@@ -3421,50 +3555,50 @@ var WithdrawAmountStep = ({
|
|
|
3421
3555
|
onContinue
|
|
3422
3556
|
}) => {
|
|
3423
3557
|
var _a;
|
|
3424
|
-
const [rawAmount, setRawAmount] = (0,
|
|
3558
|
+
const [rawAmount, setRawAmount] = (0, import_react6.useState)("");
|
|
3425
3559
|
const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
|
|
3426
3560
|
const numericAmount = Number(rawAmount) || 0;
|
|
3427
3561
|
const isValid = numericAmount > 0 && numericAmount <= venue.balance;
|
|
3428
3562
|
const exceedsBalance = numericAmount > venue.balance;
|
|
3429
3563
|
const methodLabel = method === "wallet" ? "Wallet" : "Bank";
|
|
3430
|
-
const handleAmountChange = (0,
|
|
3564
|
+
const handleAmountChange = (0, import_react6.useCallback)((e) => {
|
|
3431
3565
|
const v = e.target.value.replace(/[^0-9.]/g, "");
|
|
3432
3566
|
const parts = v.split(".");
|
|
3433
3567
|
const sanitized = parts.length > 2 ? `${parts[0]}.${parts.slice(1).join("")}` : v;
|
|
3434
3568
|
setRawAmount(sanitized);
|
|
3435
3569
|
}, []);
|
|
3436
|
-
const handleMax = (0,
|
|
3570
|
+
const handleMax = (0, import_react6.useCallback)(() => {
|
|
3437
3571
|
setRawAmount(venue.balance.toString());
|
|
3438
3572
|
}, [venue.balance]);
|
|
3439
|
-
return /* @__PURE__ */ (0,
|
|
3440
|
-
/* @__PURE__ */ (0,
|
|
3573
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
|
|
3574
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3441
3575
|
Modal.Header,
|
|
3442
3576
|
{
|
|
3443
3577
|
title: `Withdraw to ${methodLabel}`,
|
|
3444
3578
|
hideBorder: true,
|
|
3445
|
-
leftElement: /* @__PURE__ */ (0,
|
|
3579
|
+
leftElement: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3446
3580
|
"button",
|
|
3447
3581
|
{
|
|
3448
3582
|
type: "button",
|
|
3449
3583
|
className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
|
|
3450
3584
|
onClick: onBack,
|
|
3451
3585
|
"aria-label": "Go back",
|
|
3452
|
-
children: /* @__PURE__ */ (0,
|
|
3586
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
|
|
3453
3587
|
}
|
|
3454
3588
|
)
|
|
3455
3589
|
}
|
|
3456
3590
|
),
|
|
3457
|
-
/* @__PURE__ */ (0,
|
|
3458
|
-
/* @__PURE__ */ (0,
|
|
3459
|
-
/* @__PURE__ */ (0,
|
|
3460
|
-
/* @__PURE__ */ (0,
|
|
3461
|
-
/* @__PURE__ */ (0,
|
|
3591
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.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_runtime70.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
3592
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
3593
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
3594
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
|
|
3595
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
|
|
3462
3596
|
displayName,
|
|
3463
3597
|
" balance: ",
|
|
3464
3598
|
formatCompactUsd(venue.balance)
|
|
3465
3599
|
] })
|
|
3466
3600
|
] }),
|
|
3467
|
-
/* @__PURE__ */ (0,
|
|
3601
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3468
3602
|
"button",
|
|
3469
3603
|
{
|
|
3470
3604
|
type: "button",
|
|
@@ -3474,10 +3608,10 @@ var WithdrawAmountStep = ({
|
|
|
3474
3608
|
}
|
|
3475
3609
|
)
|
|
3476
3610
|
] }),
|
|
3477
|
-
/* @__PURE__ */ (0,
|
|
3478
|
-
/* @__PURE__ */ (0,
|
|
3479
|
-
/* @__PURE__ */ (0,
|
|
3480
|
-
/* @__PURE__ */ (0,
|
|
3611
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex-1 min-w-0", children: [
|
|
3612
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-baseline", children: [
|
|
3613
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
|
|
3614
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3481
3615
|
"input",
|
|
3482
3616
|
{
|
|
3483
3617
|
type: "text",
|
|
@@ -3493,9 +3627,9 @@ var WithdrawAmountStep = ({
|
|
|
3493
3627
|
}
|
|
3494
3628
|
)
|
|
3495
3629
|
] }),
|
|
3496
|
-
exceedsBalance ? /* @__PURE__ */ (0,
|
|
3630
|
+
exceedsBalance ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "agg-type-label mt-2 text-agg-error", children: "Amount exceeds available balance" }) : null
|
|
3497
3631
|
] }),
|
|
3498
|
-
/* @__PURE__ */ (0,
|
|
3632
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3499
3633
|
Button,
|
|
3500
3634
|
{
|
|
3501
3635
|
variant: "primary",
|
|
@@ -3511,30 +3645,30 @@ var WithdrawAmountStep = ({
|
|
|
3511
3645
|
};
|
|
3512
3646
|
|
|
3513
3647
|
// src/withdraw/steps/kalshi-withdraw.tsx
|
|
3514
|
-
var
|
|
3648
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3515
3649
|
var KalshiStepCard2 = ({
|
|
3516
3650
|
step,
|
|
3517
3651
|
title,
|
|
3518
3652
|
description,
|
|
3519
3653
|
children
|
|
3520
|
-
}) => /* @__PURE__ */ (0,
|
|
3521
|
-
/* @__PURE__ */ (0,
|
|
3654
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-col gap-2 rounded-xl bg-agg-secondary-hover p-4", children: [
|
|
3655
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
|
|
3522
3656
|
"Step ",
|
|
3523
3657
|
step
|
|
3524
3658
|
] }),
|
|
3525
|
-
/* @__PURE__ */ (0,
|
|
3526
|
-
/* @__PURE__ */ (0,
|
|
3527
|
-
/* @__PURE__ */ (0,
|
|
3659
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
3660
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
|
|
3661
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "agg-type-label text-agg-foreground", children: description })
|
|
3528
3662
|
] }),
|
|
3529
3663
|
children
|
|
3530
3664
|
] });
|
|
3531
3665
|
var KalshiWithdrawStep = ({
|
|
3532
3666
|
withdrawUrl,
|
|
3533
3667
|
onDone
|
|
3534
|
-
}) => /* @__PURE__ */ (0,
|
|
3535
|
-
/* @__PURE__ */ (0,
|
|
3536
|
-
/* @__PURE__ */ (0,
|
|
3537
|
-
/* @__PURE__ */ (0,
|
|
3668
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
3669
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Modal.Header, { title: "", hideBorder: true }),
|
|
3670
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.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_runtime71.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
|
|
3671
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3538
3672
|
VenueLogo,
|
|
3539
3673
|
{
|
|
3540
3674
|
venue: "kalshi",
|
|
@@ -3542,23 +3676,23 @@ var KalshiWithdrawStep = ({
|
|
|
3542
3676
|
className: "h-[60px] w-[60px] rounded-lg"
|
|
3543
3677
|
}
|
|
3544
3678
|
),
|
|
3545
|
-
/* @__PURE__ */ (0,
|
|
3546
|
-
/* @__PURE__ */ (0,
|
|
3547
|
-
/* @__PURE__ */ (0,
|
|
3679
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-col items-center gap-4 text-center", children: [
|
|
3680
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: "Withdraw from Kalshi" }),
|
|
3681
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "To withdraw from Kalshi you'll need to initiate the withdrawal from your Kalshi account directly on Kalshi's site." })
|
|
3548
3682
|
] }),
|
|
3549
|
-
/* @__PURE__ */ (0,
|
|
3550
|
-
/* @__PURE__ */ (0,
|
|
3683
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex w-full flex-col gap-4", children: [
|
|
3684
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3551
3685
|
KalshiStepCard2,
|
|
3552
3686
|
{
|
|
3553
3687
|
step: 1,
|
|
3554
3688
|
title: "Open Kalshi Withdraw Page",
|
|
3555
3689
|
description: "Sign in to your Kalshi account and go to Withdraw from your account menu.",
|
|
3556
|
-
children: /* @__PURE__ */ (0,
|
|
3690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3557
3691
|
Button,
|
|
3558
3692
|
{
|
|
3559
3693
|
variant: "secondary",
|
|
3560
3694
|
size: "small",
|
|
3561
|
-
suffix: /* @__PURE__ */ (0,
|
|
3695
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
|
|
3562
3696
|
onClick: () => {
|
|
3563
3697
|
window.open(withdrawUrl, "_blank", "noopener,noreferrer");
|
|
3564
3698
|
},
|
|
@@ -3567,7 +3701,7 @@ var KalshiWithdrawStep = ({
|
|
|
3567
3701
|
) })
|
|
3568
3702
|
}
|
|
3569
3703
|
),
|
|
3570
|
-
/* @__PURE__ */ (0,
|
|
3704
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3571
3705
|
KalshiStepCard2,
|
|
3572
3706
|
{
|
|
3573
3707
|
step: 2,
|
|
@@ -3575,7 +3709,7 @@ var KalshiWithdrawStep = ({
|
|
|
3575
3709
|
description: "Select a withdrawal method: Bank transfer (ACH), Wire, or USDC (crypto)."
|
|
3576
3710
|
}
|
|
3577
3711
|
),
|
|
3578
|
-
/* @__PURE__ */ (0,
|
|
3712
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3579
3713
|
KalshiStepCard2,
|
|
3580
3714
|
{
|
|
3581
3715
|
step: 3,
|
|
@@ -3584,12 +3718,12 @@ var KalshiWithdrawStep = ({
|
|
|
3584
3718
|
}
|
|
3585
3719
|
)
|
|
3586
3720
|
] }),
|
|
3587
|
-
/* @__PURE__ */ (0,
|
|
3721
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
|
|
3588
3722
|
] }) })
|
|
3589
3723
|
] });
|
|
3590
3724
|
|
|
3591
3725
|
// src/withdraw/index.tsx
|
|
3592
|
-
var
|
|
3726
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3593
3727
|
var WithdrawModal = ({
|
|
3594
3728
|
open,
|
|
3595
3729
|
onOpenChange,
|
|
@@ -3601,9 +3735,9 @@ var WithdrawModal = ({
|
|
|
3601
3735
|
onDoneKalshi,
|
|
3602
3736
|
kalshiWithdrawUrl = KALSHI_WITHDRAW_URL_DEFAULT
|
|
3603
3737
|
}) => {
|
|
3604
|
-
const [step, setStep] = (0,
|
|
3605
|
-
const [selectedVenue, setSelectedVenue] = (0,
|
|
3606
|
-
const [selectedMethod, setSelectedMethod] = (0,
|
|
3738
|
+
const [step, setStep] = (0, import_react7.useState)("venues");
|
|
3739
|
+
const [selectedVenue, setSelectedVenue] = (0, import_react7.useState)(null);
|
|
3740
|
+
const [selectedMethod, setSelectedMethod] = (0, import_react7.useState)(null);
|
|
3607
3741
|
const handleSelectVenue = (venueSlug) => {
|
|
3608
3742
|
onSelectVenue(venueSlug);
|
|
3609
3743
|
if (venueSlug === KALSHI_VENUE2) {
|
|
@@ -3653,9 +3787,9 @@ var WithdrawModal = ({
|
|
|
3653
3787
|
}
|
|
3654
3788
|
onOpenChange(isOpen);
|
|
3655
3789
|
};
|
|
3656
|
-
return /* @__PURE__ */ (0,
|
|
3657
|
-
step === "venues" ? /* @__PURE__ */ (0,
|
|
3658
|
-
step === "method" && selectedVenue ? /* @__PURE__ */ (0,
|
|
3790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
|
|
3791
|
+
step === "venues" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(VenueSelectionStep2, { venues, onSelectVenue: handleSelectVenue }) : null,
|
|
3792
|
+
step === "method" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3659
3793
|
WithdrawMethodStep,
|
|
3660
3794
|
{
|
|
3661
3795
|
venue: selectedVenue,
|
|
@@ -3663,7 +3797,7 @@ var WithdrawModal = ({
|
|
|
3663
3797
|
onSelectMethod: handleSelectMethod
|
|
3664
3798
|
}
|
|
3665
3799
|
) : null,
|
|
3666
|
-
step === "withdraw-amount" && selectedVenue && selectedMethod ? /* @__PURE__ */ (0,
|
|
3800
|
+
step === "withdraw-amount" && selectedVenue && selectedMethod ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3667
3801
|
WithdrawAmountStep,
|
|
3668
3802
|
{
|
|
3669
3803
|
venue: selectedVenue,
|
|
@@ -3672,14 +3806,14 @@ var WithdrawModal = ({
|
|
|
3672
3806
|
onContinue: handleContinueWithdraw
|
|
3673
3807
|
}
|
|
3674
3808
|
) : null,
|
|
3675
|
-
step === "kalshi" ? /* @__PURE__ */ (0,
|
|
3809
|
+
step === "kalshi" ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(KalshiWithdrawStep, { withdrawUrl: kalshiWithdrawUrl, onDone: handleDoneKalshi }) : null
|
|
3676
3810
|
] }) });
|
|
3677
3811
|
};
|
|
3678
3812
|
WithdrawModal.displayName = "WithdrawModal";
|
|
3679
3813
|
|
|
3680
3814
|
// src/onboarding/index.tsx
|
|
3681
|
-
var
|
|
3682
|
-
var
|
|
3815
|
+
var import_react12 = require("react");
|
|
3816
|
+
var import_hooks11 = require("@agg-market/hooks");
|
|
3683
3817
|
var Dialog4 = __toESM(require("@radix-ui/react-dialog"));
|
|
3684
3818
|
|
|
3685
3819
|
// src/onboarding/onboarding-modal.constants.ts
|
|
@@ -3701,31 +3835,31 @@ var ONCHAIN_VENUES = [
|
|
|
3701
3835
|
];
|
|
3702
3836
|
|
|
3703
3837
|
// src/onboarding/steps/how-it-works.tsx
|
|
3704
|
-
var
|
|
3705
|
-
var
|
|
3706
|
-
var
|
|
3838
|
+
var import_react8 = require("react");
|
|
3839
|
+
var import_hooks6 = require("@agg-market/hooks");
|
|
3840
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3707
3841
|
var defaultIcons = {
|
|
3708
|
-
createAccount: /* @__PURE__ */ (0,
|
|
3709
|
-
linkAccounts: /* @__PURE__ */ (0,
|
|
3710
|
-
bestPrices: /* @__PURE__ */ (0,
|
|
3711
|
-
stayInControl: /* @__PURE__ */ (0,
|
|
3842
|
+
createAccount: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
|
|
3843
|
+
linkAccounts: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
|
|
3844
|
+
bestPrices: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
|
|
3845
|
+
stayInControl: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
|
|
3712
3846
|
};
|
|
3713
3847
|
var HowItWorksStep = ({ onContinue, icons }) => {
|
|
3714
|
-
const labels = (0,
|
|
3715
|
-
const scrollRef = (0,
|
|
3716
|
-
const [showTopGradient, setShowTopGradient] = (0,
|
|
3717
|
-
const [showBottomGradient, setShowBottomGradient] = (0,
|
|
3718
|
-
const handleScroll = (0,
|
|
3848
|
+
const labels = (0, import_hooks6.useLabels)();
|
|
3849
|
+
const scrollRef = (0, import_react8.useRef)(null);
|
|
3850
|
+
const [showTopGradient, setShowTopGradient] = (0, import_react8.useState)(false);
|
|
3851
|
+
const [showBottomGradient, setShowBottomGradient] = (0, import_react8.useState)(true);
|
|
3852
|
+
const handleScroll = (0, import_react8.useCallback)(() => {
|
|
3719
3853
|
const el = scrollRef.current;
|
|
3720
3854
|
if (!el)
|
|
3721
3855
|
return;
|
|
3722
3856
|
setShowTopGradient(el.scrollTop > 0);
|
|
3723
3857
|
setShowBottomGradient(el.scrollTop + el.clientHeight < el.scrollHeight - 1);
|
|
3724
3858
|
}, []);
|
|
3725
|
-
return /* @__PURE__ */ (0,
|
|
3726
|
-
/* @__PURE__ */ (0,
|
|
3727
|
-
/* @__PURE__ */ (0,
|
|
3728
|
-
/* @__PURE__ */ (0,
|
|
3859
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
|
|
3860
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
|
|
3861
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
|
|
3862
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3729
3863
|
"div",
|
|
3730
3864
|
{
|
|
3731
3865
|
ref: scrollRef,
|
|
@@ -3735,7 +3869,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
3735
3869
|
var _a;
|
|
3736
3870
|
const icon = (_a = icons == null ? void 0 : icons[featureKey]) != null ? _a : defaultIcons[featureKey];
|
|
3737
3871
|
const feature = labels.onboarding.howItWorks.features[featureKey];
|
|
3738
|
-
return /* @__PURE__ */ (0,
|
|
3872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
3739
3873
|
"div",
|
|
3740
3874
|
{
|
|
3741
3875
|
className: cn(
|
|
@@ -3744,11 +3878,11 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
3744
3878
|
"bg-agg-secondary-hover"
|
|
3745
3879
|
),
|
|
3746
3880
|
children: [
|
|
3747
|
-
/* @__PURE__ */ (0,
|
|
3748
|
-
/* @__PURE__ */ (0,
|
|
3749
|
-
/* @__PURE__ */ (0,
|
|
3881
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
|
|
3882
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
|
|
3883
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
|
|
3750
3884
|
] }),
|
|
3751
|
-
icon ? /* @__PURE__ */ (0,
|
|
3885
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
|
|
3752
3886
|
]
|
|
3753
3887
|
},
|
|
3754
3888
|
featureKey
|
|
@@ -3756,7 +3890,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
3756
3890
|
})
|
|
3757
3891
|
}
|
|
3758
3892
|
),
|
|
3759
|
-
/* @__PURE__ */ (0,
|
|
3893
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3760
3894
|
"div",
|
|
3761
3895
|
{
|
|
3762
3896
|
className: cn(
|
|
@@ -3767,7 +3901,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
3767
3901
|
)
|
|
3768
3902
|
}
|
|
3769
3903
|
),
|
|
3770
|
-
/* @__PURE__ */ (0,
|
|
3904
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3771
3905
|
"div",
|
|
3772
3906
|
{
|
|
3773
3907
|
className: cn(
|
|
@@ -3779,26 +3913,26 @@ var HowItWorksStep = ({ onContinue, icons }) => {
|
|
|
3779
3913
|
}
|
|
3780
3914
|
)
|
|
3781
3915
|
] }),
|
|
3782
|
-
/* @__PURE__ */ (0,
|
|
3916
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
|
|
3783
3917
|
] });
|
|
3784
3918
|
};
|
|
3785
3919
|
HowItWorksStep.displayName = "HowItWorksStep";
|
|
3786
3920
|
|
|
3787
3921
|
// src/onboarding/steps/profile-setup.tsx
|
|
3788
|
-
var
|
|
3789
|
-
var
|
|
3790
|
-
var
|
|
3922
|
+
var import_react9 = require("react");
|
|
3923
|
+
var import_hooks7 = require("@agg-market/hooks");
|
|
3924
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3791
3925
|
var ProfileSetupStep = ({ onContinue }) => {
|
|
3792
|
-
const labels = (0,
|
|
3793
|
-
const [username, setUsername] = (0,
|
|
3794
|
-
const [avatarFile, setAvatarFile] = (0,
|
|
3795
|
-
const [avatarPreview, setAvatarPreview] = (0,
|
|
3796
|
-
const fileInputRef = (0,
|
|
3797
|
-
const handleAvatarClick = (0,
|
|
3926
|
+
const labels = (0, import_hooks7.useLabels)();
|
|
3927
|
+
const [username, setUsername] = (0, import_react9.useState)("");
|
|
3928
|
+
const [avatarFile, setAvatarFile] = (0, import_react9.useState)();
|
|
3929
|
+
const [avatarPreview, setAvatarPreview] = (0, import_react9.useState)();
|
|
3930
|
+
const fileInputRef = (0, import_react9.useRef)(null);
|
|
3931
|
+
const handleAvatarClick = (0, import_react9.useCallback)(() => {
|
|
3798
3932
|
var _a;
|
|
3799
3933
|
(_a = fileInputRef.current) == null ? void 0 : _a.click();
|
|
3800
3934
|
}, []);
|
|
3801
|
-
const handleFileChange = (0,
|
|
3935
|
+
const handleFileChange = (0, import_react9.useCallback)((e) => {
|
|
3802
3936
|
var _a;
|
|
3803
3937
|
const file = (_a = e.target.files) == null ? void 0 : _a[0];
|
|
3804
3938
|
if (!file)
|
|
@@ -3811,18 +3945,18 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
3811
3945
|
};
|
|
3812
3946
|
reader.readAsDataURL(file);
|
|
3813
3947
|
}, []);
|
|
3814
|
-
const handleContinue = (0,
|
|
3948
|
+
const handleContinue = (0, import_react9.useCallback)(() => {
|
|
3815
3949
|
onContinue({
|
|
3816
3950
|
username,
|
|
3817
3951
|
avatarFile,
|
|
3818
3952
|
avatarPreview
|
|
3819
3953
|
});
|
|
3820
3954
|
}, [username, avatarFile, avatarPreview, onContinue]);
|
|
3821
|
-
return /* @__PURE__ */ (0,
|
|
3822
|
-
/* @__PURE__ */ (0,
|
|
3823
|
-
/* @__PURE__ */ (0,
|
|
3824
|
-
/* @__PURE__ */ (0,
|
|
3825
|
-
/* @__PURE__ */ (0,
|
|
3955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-7", children: [
|
|
3956
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
|
|
3957
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-5 items-center w-full", children: [
|
|
3958
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex justify-center", children: [
|
|
3959
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3826
3960
|
"button",
|
|
3827
3961
|
{
|
|
3828
3962
|
type: "button",
|
|
@@ -3838,17 +3972,17 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
3838
3972
|
"overflow-hidden"
|
|
3839
3973
|
),
|
|
3840
3974
|
"aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
|
|
3841
|
-
children: avatarPreview ? /* @__PURE__ */ (0,
|
|
3842
|
-
|
|
3975
|
+
children: avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3976
|
+
RemoteImage,
|
|
3843
3977
|
{
|
|
3844
3978
|
src: avatarPreview,
|
|
3845
3979
|
alt: labels.onboarding.profileSetup.profilePreviewAlt,
|
|
3846
3980
|
className: "h-full w-full object-cover"
|
|
3847
3981
|
}
|
|
3848
|
-
) : /* @__PURE__ */ (0,
|
|
3982
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
|
|
3849
3983
|
}
|
|
3850
3984
|
),
|
|
3851
|
-
/* @__PURE__ */ (0,
|
|
3985
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3852
3986
|
"input",
|
|
3853
3987
|
{
|
|
3854
3988
|
ref: fileInputRef,
|
|
@@ -3860,8 +3994,8 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
3860
3994
|
}
|
|
3861
3995
|
)
|
|
3862
3996
|
] }),
|
|
3863
|
-
/* @__PURE__ */ (0,
|
|
3864
|
-
/* @__PURE__ */ (0,
|
|
3997
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
3998
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3865
3999
|
"label",
|
|
3866
4000
|
{
|
|
3867
4001
|
htmlFor: "onboarding-username",
|
|
@@ -3869,7 +4003,7 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
3869
4003
|
children: labels.onboarding.profileSetup.usernameLabel
|
|
3870
4004
|
}
|
|
3871
4005
|
),
|
|
3872
|
-
/* @__PURE__ */ (0,
|
|
4006
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3873
4007
|
"input",
|
|
3874
4008
|
{
|
|
3875
4009
|
id: "onboarding-username",
|
|
@@ -3893,16 +4027,16 @@ var ProfileSetupStep = ({ onContinue }) => {
|
|
|
3893
4027
|
)
|
|
3894
4028
|
] })
|
|
3895
4029
|
] }),
|
|
3896
|
-
/* @__PURE__ */ (0,
|
|
4030
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
|
|
3897
4031
|
] });
|
|
3898
4032
|
};
|
|
3899
4033
|
ProfileSetupStep.displayName = "ProfileSetupStep";
|
|
3900
4034
|
|
|
3901
4035
|
// src/onboarding/steps/connect-accounts.tsx
|
|
3902
|
-
var
|
|
3903
|
-
var
|
|
4036
|
+
var import_hooks8 = require("@agg-market/hooks");
|
|
4037
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3904
4038
|
var OnchainVenueLogos = () => {
|
|
3905
|
-
return /* @__PURE__ */ (0,
|
|
4039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
|
|
3906
4040
|
};
|
|
3907
4041
|
var VenueCard = ({
|
|
3908
4042
|
logos,
|
|
@@ -3913,8 +4047,8 @@ var VenueCard = ({
|
|
|
3913
4047
|
onConnect,
|
|
3914
4048
|
connected = false
|
|
3915
4049
|
}) => {
|
|
3916
|
-
const labels = (0,
|
|
3917
|
-
const action = connected ? /* @__PURE__ */ (0,
|
|
4050
|
+
const labels = (0, import_hooks8.useLabels)();
|
|
4051
|
+
const action = connected ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3918
4052
|
Button,
|
|
3919
4053
|
{
|
|
3920
4054
|
variant: "tertiary",
|
|
@@ -3924,18 +4058,18 @@ var VenueCard = ({
|
|
|
3924
4058
|
children: labels.onboarding.connectAccounts.connect
|
|
3925
4059
|
}
|
|
3926
4060
|
);
|
|
3927
|
-
const mobileAction = connected ? /* @__PURE__ */ (0,
|
|
4061
|
+
const mobileAction = connected ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3928
4062
|
Button,
|
|
3929
4063
|
{
|
|
3930
4064
|
variant: "tertiary",
|
|
3931
4065
|
size: "medium",
|
|
3932
4066
|
className: "!h-auto !px-0 !py-0 text-agg-primary hover:bg-transparent hover:text-agg-primary-hover",
|
|
3933
4067
|
onClick: onConnect,
|
|
3934
|
-
suffix: /* @__PURE__ */ (0,
|
|
4068
|
+
suffix: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ChevronRightIcon, { className: "h-4 w-4" }),
|
|
3935
4069
|
children: labels.onboarding.connectAccounts.connectAccount
|
|
3936
4070
|
}
|
|
3937
4071
|
);
|
|
3938
|
-
return /* @__PURE__ */ (0,
|
|
4072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
|
|
3939
4073
|
"div",
|
|
3940
4074
|
{
|
|
3941
4075
|
className: cn(
|
|
@@ -3943,23 +4077,23 @@ var VenueCard = ({
|
|
|
3943
4077
|
connected ? "bg-agg-success/5" : "bg-agg-secondary-hover hover:bg-agg-tertiary"
|
|
3944
4078
|
),
|
|
3945
4079
|
children: [
|
|
3946
|
-
/* @__PURE__ */ (0,
|
|
3947
|
-
/* @__PURE__ */ (0,
|
|
3948
|
-
/* @__PURE__ */ (0,
|
|
3949
|
-
/* @__PURE__ */ (0,
|
|
3950
|
-
/* @__PURE__ */ (0,
|
|
3951
|
-
/* @__PURE__ */ (0,
|
|
4080
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "hidden sm:flex items-center justify-between", children: [
|
|
4081
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center gap-5", children: [
|
|
4082
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "shrink-0", children: logos }),
|
|
4083
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-[2px]", children: [
|
|
4084
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
|
|
4085
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-agg-sm text-agg-foreground", children: description })
|
|
3952
4086
|
] })
|
|
3953
4087
|
] }),
|
|
3954
|
-
/* @__PURE__ */ (0,
|
|
4088
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "shrink-0", children: action })
|
|
3955
4089
|
] }),
|
|
3956
|
-
/* @__PURE__ */ (0,
|
|
3957
|
-
/* @__PURE__ */ (0,
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
3959
|
-
/* @__PURE__ */ (0,
|
|
4090
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-3 sm:hidden", children: [
|
|
4091
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4092
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "shrink-0", children: logos }),
|
|
4093
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
|
|
3960
4094
|
] }),
|
|
3961
|
-
/* @__PURE__ */ (0,
|
|
3962
|
-
/* @__PURE__ */ (0,
|
|
4095
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col items-start gap-2", children: [
|
|
4096
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
|
|
3963
4097
|
mobileAction
|
|
3964
4098
|
] })
|
|
3965
4099
|
] })
|
|
@@ -3974,15 +4108,15 @@ var ConnectAccountsStep = ({
|
|
|
3974
4108
|
connectedOnchain = false,
|
|
3975
4109
|
connectedKalshi = false
|
|
3976
4110
|
}) => {
|
|
3977
|
-
const labels = (0,
|
|
4111
|
+
const labels = (0, import_hooks8.useLabels)();
|
|
3978
4112
|
const canContinue = connectedOnchain || connectedKalshi;
|
|
3979
|
-
return /* @__PURE__ */ (0,
|
|
3980
|
-
/* @__PURE__ */ (0,
|
|
3981
|
-
/* @__PURE__ */ (0,
|
|
3982
|
-
/* @__PURE__ */ (0,
|
|
4113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
4114
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
|
|
4115
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
4116
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3983
4117
|
VenueCard,
|
|
3984
4118
|
{
|
|
3985
|
-
logos: /* @__PURE__ */ (0,
|
|
4119
|
+
logos: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(OnchainVenueLogos, {}),
|
|
3986
4120
|
title: labels.onboarding.connectAccounts.onchainTitle,
|
|
3987
4121
|
mobileTitle: labels.onboarding.connectAccounts.onchainMobileTitle(
|
|
3988
4122
|
ONCHAIN_VENUES.length - 1
|
|
@@ -3993,10 +4127,10 @@ var ConnectAccountsStep = ({
|
|
|
3993
4127
|
connected: connectedOnchain
|
|
3994
4128
|
}
|
|
3995
4129
|
),
|
|
3996
|
-
/* @__PURE__ */ (0,
|
|
4130
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
3997
4131
|
VenueCard,
|
|
3998
4132
|
{
|
|
3999
|
-
logos: /* @__PURE__ */ (0,
|
|
4133
|
+
logos: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "sm:flex sm:w-14 sm:items-center sm:justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4000
4134
|
VenueLogo,
|
|
4001
4135
|
{
|
|
4002
4136
|
venue: "kalshi",
|
|
@@ -4014,7 +4148,7 @@ var ConnectAccountsStep = ({
|
|
|
4014
4148
|
}
|
|
4015
4149
|
)
|
|
4016
4150
|
] }),
|
|
4017
|
-
/* @__PURE__ */ (0,
|
|
4151
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4018
4152
|
Button,
|
|
4019
4153
|
{
|
|
4020
4154
|
variant: "primary",
|
|
@@ -4030,25 +4164,25 @@ var ConnectAccountsStep = ({
|
|
|
4030
4164
|
ConnectAccountsStep.displayName = "ConnectAccountsStep";
|
|
4031
4165
|
|
|
4032
4166
|
// src/onboarding/steps/connect-kalshi-modal.tsx
|
|
4033
|
-
var
|
|
4034
|
-
var
|
|
4167
|
+
var import_react10 = require("react");
|
|
4168
|
+
var import_hooks9 = require("@agg-market/hooks");
|
|
4035
4169
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
|
|
4036
|
-
var
|
|
4170
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4037
4171
|
var ConnectKalshiModal = ({
|
|
4038
4172
|
open,
|
|
4039
4173
|
onOpenChange,
|
|
4040
4174
|
onVerify
|
|
4041
4175
|
}) => {
|
|
4042
|
-
const labels = (0,
|
|
4043
|
-
const [apiKeyId, setApiKeyId] = (0,
|
|
4044
|
-
const [privateKey, setPrivateKey] = (0,
|
|
4045
|
-
const [verifying, setVerifying] = (0,
|
|
4046
|
-
const [error, setError] = (0,
|
|
4176
|
+
const labels = (0, import_hooks9.useLabels)();
|
|
4177
|
+
const [apiKeyId, setApiKeyId] = (0, import_react10.useState)("");
|
|
4178
|
+
const [privateKey, setPrivateKey] = (0, import_react10.useState)("");
|
|
4179
|
+
const [verifying, setVerifying] = (0, import_react10.useState)(false);
|
|
4180
|
+
const [error, setError] = (0, import_react10.useState)();
|
|
4047
4181
|
const canVerify = apiKeyId.trim().length > 0 && privateKey.trim().length > 0;
|
|
4048
|
-
const handleCancel = (0,
|
|
4182
|
+
const handleCancel = (0, import_react10.useCallback)(() => {
|
|
4049
4183
|
onOpenChange(false);
|
|
4050
4184
|
}, [onOpenChange]);
|
|
4051
|
-
const handleVerify = (0,
|
|
4185
|
+
const handleVerify = (0, import_react10.useCallback)(() => __async(void 0, null, function* () {
|
|
4052
4186
|
if (!canVerify || verifying)
|
|
4053
4187
|
return;
|
|
4054
4188
|
setVerifying(true);
|
|
@@ -4078,7 +4212,7 @@ var ConnectKalshiModal = ({
|
|
|
4078
4212
|
privateKey,
|
|
4079
4213
|
verifying
|
|
4080
4214
|
]);
|
|
4081
|
-
const handleOpenChange = (0,
|
|
4215
|
+
const handleOpenChange = (0, import_react10.useCallback)(
|
|
4082
4216
|
(value) => {
|
|
4083
4217
|
if (value) {
|
|
4084
4218
|
setApiKeyId("");
|
|
@@ -4090,15 +4224,15 @@ var ConnectKalshiModal = ({
|
|
|
4090
4224
|
},
|
|
4091
4225
|
[onOpenChange]
|
|
4092
4226
|
);
|
|
4093
|
-
return /* @__PURE__ */ (0,
|
|
4227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
4094
4228
|
Modal.Container,
|
|
4095
4229
|
{
|
|
4096
4230
|
maxWidth: "600px",
|
|
4097
4231
|
"aria-label": labels.onboarding.connectKalshiModal.ariaLabel,
|
|
4098
4232
|
classNames: { container: "!rounded-agg-lg" },
|
|
4099
4233
|
children: [
|
|
4100
|
-
/* @__PURE__ */ (0,
|
|
4101
|
-
/* @__PURE__ */ (0,
|
|
4234
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Dialog2.Title, { className: "sr-only", children: labels.onboarding.connectKalshiModal.title }),
|
|
4235
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4102
4236
|
Modal.Header,
|
|
4103
4237
|
{
|
|
4104
4238
|
hideClose: false,
|
|
@@ -4109,8 +4243,8 @@ var ConnectKalshiModal = ({
|
|
|
4109
4243
|
}
|
|
4110
4244
|
}
|
|
4111
4245
|
),
|
|
4112
|
-
/* @__PURE__ */ (0,
|
|
4113
|
-
/* @__PURE__ */ (0,
|
|
4246
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
|
|
4247
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4114
4248
|
VenueLogo,
|
|
4115
4249
|
{
|
|
4116
4250
|
venue: "kalshi",
|
|
@@ -4119,54 +4253,54 @@ var ConnectKalshiModal = ({
|
|
|
4119
4253
|
className: "h-[60px] w-[60px]"
|
|
4120
4254
|
}
|
|
4121
4255
|
),
|
|
4122
|
-
/* @__PURE__ */ (0,
|
|
4123
|
-
/* @__PURE__ */ (0,
|
|
4124
|
-
/* @__PURE__ */ (0,
|
|
4256
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
|
|
4257
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
|
|
4258
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
|
|
4125
4259
|
] }),
|
|
4126
|
-
/* @__PURE__ */ (0,
|
|
4127
|
-
/* @__PURE__ */ (0,
|
|
4128
|
-
/* @__PURE__ */ (0,
|
|
4129
|
-
/* @__PURE__ */ (0,
|
|
4130
|
-
/* @__PURE__ */ (0,
|
|
4260
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
|
|
4261
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
|
|
4262
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
4263
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
|
|
4264
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
|
|
4131
4265
|
] }),
|
|
4132
|
-
/* @__PURE__ */ (0,
|
|
4133
|
-
/* @__PURE__ */ (0,
|
|
4134
|
-
/* @__PURE__ */ (0,
|
|
4266
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
4267
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
|
|
4268
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("p", { children: [
|
|
4135
4269
|
labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfilePrefix,
|
|
4136
4270
|
" ",
|
|
4137
|
-
/* @__PURE__ */ (0,
|
|
4271
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
|
|
4138
4272
|
labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfileSeparator,
|
|
4139
4273
|
" ",
|
|
4140
|
-
/* @__PURE__ */ (0,
|
|
4274
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "text-agg-foreground underline", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileUrl })
|
|
4141
4275
|
] }),
|
|
4142
|
-
/* @__PURE__ */ (0,
|
|
4276
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("p", { children: [
|
|
4143
4277
|
labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeyPrefix,
|
|
4144
4278
|
" ",
|
|
4145
|
-
/* @__PURE__ */ (0,
|
|
4279
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
|
|
4146
4280
|
labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeySuffix
|
|
4147
4281
|
] }),
|
|
4148
|
-
/* @__PURE__ */ (0,
|
|
4282
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("p", { children: [
|
|
4149
4283
|
labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsPrefix,
|
|
4150
4284
|
" ",
|
|
4151
|
-
/* @__PURE__ */ (0,
|
|
4285
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
|
|
4152
4286
|
labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsSuffix
|
|
4153
4287
|
] }),
|
|
4154
|
-
/* @__PURE__ */ (0,
|
|
4288
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
|
|
4155
4289
|
] }),
|
|
4156
|
-
/* @__PURE__ */ (0,
|
|
4290
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
|
|
4157
4291
|
labels.onboarding.connectKalshiModal.stepOne.footerLineOne,
|
|
4158
|
-
/* @__PURE__ */ (0,
|
|
4292
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("br", {}),
|
|
4159
4293
|
labels.onboarding.connectKalshiModal.stepOne.footerLineTwo
|
|
4160
4294
|
] })
|
|
4161
4295
|
] }),
|
|
4162
|
-
/* @__PURE__ */ (0,
|
|
4163
|
-
/* @__PURE__ */ (0,
|
|
4164
|
-
/* @__PURE__ */ (0,
|
|
4165
|
-
/* @__PURE__ */ (0,
|
|
4296
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
|
|
4297
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
4298
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
|
|
4299
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
|
|
4166
4300
|
] }),
|
|
4167
|
-
/* @__PURE__ */ (0,
|
|
4168
|
-
/* @__PURE__ */ (0,
|
|
4169
|
-
/* @__PURE__ */ (0,
|
|
4301
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
|
|
4302
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
4303
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4170
4304
|
"label",
|
|
4171
4305
|
{
|
|
4172
4306
|
htmlFor: "kalshi-api-key-id",
|
|
@@ -4174,7 +4308,7 @@ var ConnectKalshiModal = ({
|
|
|
4174
4308
|
children: labels.onboarding.connectKalshiModal.stepTwo.apiKeyIdLabel
|
|
4175
4309
|
}
|
|
4176
4310
|
),
|
|
4177
|
-
/* @__PURE__ */ (0,
|
|
4311
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4178
4312
|
"input",
|
|
4179
4313
|
{
|
|
4180
4314
|
id: "kalshi-api-key-id",
|
|
@@ -4194,8 +4328,8 @@ var ConnectKalshiModal = ({
|
|
|
4194
4328
|
}
|
|
4195
4329
|
)
|
|
4196
4330
|
] }),
|
|
4197
|
-
/* @__PURE__ */ (0,
|
|
4198
|
-
/* @__PURE__ */ (0,
|
|
4331
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
4332
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4199
4333
|
"label",
|
|
4200
4334
|
{
|
|
4201
4335
|
htmlFor: "kalshi-private-key",
|
|
@@ -4203,7 +4337,7 @@ var ConnectKalshiModal = ({
|
|
|
4203
4337
|
children: labels.onboarding.connectKalshiModal.stepTwo.privateKeyLabel
|
|
4204
4338
|
}
|
|
4205
4339
|
),
|
|
4206
|
-
/* @__PURE__ */ (0,
|
|
4340
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4207
4341
|
"textarea",
|
|
4208
4342
|
{
|
|
4209
4343
|
id: "kalshi-private-key",
|
|
@@ -4225,42 +4359,42 @@ var ConnectKalshiModal = ({
|
|
|
4225
4359
|
] })
|
|
4226
4360
|
] })
|
|
4227
4361
|
] }),
|
|
4228
|
-
/* @__PURE__ */ (0,
|
|
4229
|
-
/* @__PURE__ */ (0,
|
|
4230
|
-
/* @__PURE__ */ (0,
|
|
4231
|
-
/* @__PURE__ */ (0,
|
|
4362
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
|
|
4363
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
|
|
4364
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4365
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
4232
4366
|
"a",
|
|
4233
4367
|
{
|
|
4234
4368
|
href: "#",
|
|
4235
4369
|
className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
|
|
4236
4370
|
children: [
|
|
4237
|
-
/* @__PURE__ */ (0,
|
|
4371
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DocumentIcon, { className: "h-4 w-4" }),
|
|
4238
4372
|
labels.onboarding.connectKalshiModal.help.docsLinkLabel
|
|
4239
4373
|
]
|
|
4240
4374
|
}
|
|
4241
4375
|
),
|
|
4242
|
-
/* @__PURE__ */ (0,
|
|
4243
|
-
/* @__PURE__ */ (0,
|
|
4376
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "h-3 w-px bg-agg-separator" }),
|
|
4377
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
4244
4378
|
"a",
|
|
4245
4379
|
{
|
|
4246
4380
|
href: "#",
|
|
4247
4381
|
className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
|
|
4248
4382
|
children: [
|
|
4249
|
-
/* @__PURE__ */ (0,
|
|
4383
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(PlaySquareIcon, { className: "h-4 w-4" }),
|
|
4250
4384
|
labels.onboarding.connectKalshiModal.help.tutorialLinkLabel
|
|
4251
4385
|
]
|
|
4252
4386
|
}
|
|
4253
4387
|
)
|
|
4254
4388
|
] })
|
|
4255
4389
|
] }),
|
|
4256
|
-
/* @__PURE__ */ (0,
|
|
4257
|
-
error ? /* @__PURE__ */ (0,
|
|
4258
|
-
/* @__PURE__ */ (0,
|
|
4259
|
-
/* @__PURE__ */ (0,
|
|
4390
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-5 items-center", children: [
|
|
4391
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4392
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
|
|
4393
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
|
|
4260
4394
|
] }) : null,
|
|
4261
|
-
/* @__PURE__ */ (0,
|
|
4262
|
-
/* @__PURE__ */ (0,
|
|
4263
|
-
/* @__PURE__ */ (0,
|
|
4395
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center gap-3 justify-center", children: [
|
|
4396
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, children: labels.onboarding.connectKalshiModal.actions.cancel }),
|
|
4397
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4264
4398
|
Button,
|
|
4265
4399
|
{
|
|
4266
4400
|
variant: "primary",
|
|
@@ -4281,22 +4415,22 @@ var ConnectKalshiModal = ({
|
|
|
4281
4415
|
ConnectKalshiModal.displayName = "ConnectKalshiModal";
|
|
4282
4416
|
|
|
4283
4417
|
// src/onboarding/steps/connect-onchain-modal.tsx
|
|
4284
|
-
var
|
|
4285
|
-
var
|
|
4418
|
+
var import_react11 = require("react");
|
|
4419
|
+
var import_hooks10 = require("@agg-market/hooks");
|
|
4286
4420
|
var Dialog3 = __toESM(require("@radix-ui/react-dialog"));
|
|
4287
|
-
var
|
|
4421
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
4288
4422
|
var ConnectOnchainModal = ({
|
|
4289
4423
|
open,
|
|
4290
4424
|
onOpenChange,
|
|
4291
4425
|
onConnect
|
|
4292
4426
|
}) => {
|
|
4293
|
-
const labels = (0,
|
|
4294
|
-
const [connecting, setConnecting] = (0,
|
|
4295
|
-
const [error, setError] = (0,
|
|
4296
|
-
const handleCancel = (0,
|
|
4427
|
+
const labels = (0, import_hooks10.useLabels)();
|
|
4428
|
+
const [connecting, setConnecting] = (0, import_react11.useState)(false);
|
|
4429
|
+
const [error, setError] = (0, import_react11.useState)();
|
|
4430
|
+
const handleCancel = (0, import_react11.useCallback)(() => {
|
|
4297
4431
|
onOpenChange(false);
|
|
4298
4432
|
}, [onOpenChange]);
|
|
4299
|
-
const handleConnect = (0,
|
|
4433
|
+
const handleConnect = (0, import_react11.useCallback)(() => __async(void 0, null, function* () {
|
|
4300
4434
|
if (connecting)
|
|
4301
4435
|
return;
|
|
4302
4436
|
setConnecting(true);
|
|
@@ -4312,7 +4446,7 @@ var ConnectOnchainModal = ({
|
|
|
4312
4446
|
setConnecting(false);
|
|
4313
4447
|
}
|
|
4314
4448
|
}), [connecting, labels.onboarding.connectOnchainModal.fallbackError, onConnect, onOpenChange]);
|
|
4315
|
-
const handleOpenChange = (0,
|
|
4449
|
+
const handleOpenChange = (0, import_react11.useCallback)(
|
|
4316
4450
|
(value) => {
|
|
4317
4451
|
if (value) {
|
|
4318
4452
|
setError(void 0);
|
|
@@ -4322,15 +4456,15 @@ var ConnectOnchainModal = ({
|
|
|
4322
4456
|
},
|
|
4323
4457
|
[onOpenChange]
|
|
4324
4458
|
);
|
|
4325
|
-
return /* @__PURE__ */ (0,
|
|
4459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
4326
4460
|
Modal.Container,
|
|
4327
4461
|
{
|
|
4328
4462
|
maxWidth: "600px",
|
|
4329
4463
|
"aria-label": labels.onboarding.connectOnchainModal.ariaLabel,
|
|
4330
4464
|
classNames: { container: "!rounded-agg-lg" },
|
|
4331
4465
|
children: [
|
|
4332
|
-
/* @__PURE__ */ (0,
|
|
4333
|
-
/* @__PURE__ */ (0,
|
|
4466
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Dialog3.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
|
|
4467
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4334
4468
|
Modal.Header,
|
|
4335
4469
|
{
|
|
4336
4470
|
hideClose: false,
|
|
@@ -4341,26 +4475,26 @@ var ConnectOnchainModal = ({
|
|
|
4341
4475
|
}
|
|
4342
4476
|
}
|
|
4343
4477
|
),
|
|
4344
|
-
/* @__PURE__ */ (0,
|
|
4345
|
-
/* @__PURE__ */ (0,
|
|
4346
|
-
/* @__PURE__ */ (0,
|
|
4347
|
-
/* @__PURE__ */ (0,
|
|
4478
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
|
|
4479
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
|
|
4480
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
|
|
4481
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
|
|
4348
4482
|
] }),
|
|
4349
|
-
/* @__PURE__ */ (0,
|
|
4350
|
-
/* @__PURE__ */ (0,
|
|
4351
|
-
/* @__PURE__ */ (0,
|
|
4352
|
-
index > 0 && /* @__PURE__ */ (0,
|
|
4353
|
-
/* @__PURE__ */ (0,
|
|
4354
|
-
/* @__PURE__ */ (0,
|
|
4483
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
|
|
4484
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
|
|
4485
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.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_runtime77.jsxs)("div", { className: "flex items-center gap-[6px]", children: [
|
|
4486
|
+
index > 0 && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
|
|
4487
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(VenueLogo, { venue, size: "medium" }),
|
|
4488
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
|
|
4355
4489
|
] }, venue)) })
|
|
4356
4490
|
] }),
|
|
4357
|
-
/* @__PURE__ */ (0,
|
|
4358
|
-
/* @__PURE__ */ (0,
|
|
4359
|
-
error ? /* @__PURE__ */ (0,
|
|
4360
|
-
/* @__PURE__ */ (0,
|
|
4361
|
-
/* @__PURE__ */ (0,
|
|
4491
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-6 items-center", children: [
|
|
4492
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-3 items-center", children: [
|
|
4493
|
+
error ? /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4494
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
|
|
4495
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
|
|
4362
4496
|
] }) : null,
|
|
4363
|
-
/* @__PURE__ */ (0,
|
|
4497
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4364
4498
|
Button,
|
|
4365
4499
|
{
|
|
4366
4500
|
variant: "primary",
|
|
@@ -4371,7 +4505,7 @@ var ConnectOnchainModal = ({
|
|
|
4371
4505
|
}
|
|
4372
4506
|
)
|
|
4373
4507
|
] }),
|
|
4374
|
-
/* @__PURE__ */ (0,
|
|
4508
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4375
4509
|
Button,
|
|
4376
4510
|
{
|
|
4377
4511
|
variant: "tertiary",
|
|
@@ -4390,7 +4524,7 @@ var ConnectOnchainModal = ({
|
|
|
4390
4524
|
ConnectOnchainModal.displayName = "ConnectOnchainModal";
|
|
4391
4525
|
|
|
4392
4526
|
// src/onboarding/index.tsx
|
|
4393
|
-
var
|
|
4527
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4394
4528
|
var OnboardingModal = ({
|
|
4395
4529
|
open,
|
|
4396
4530
|
onOpenChange,
|
|
@@ -4403,68 +4537,68 @@ var OnboardingModal = ({
|
|
|
4403
4537
|
connectedKalshi = false
|
|
4404
4538
|
}) => {
|
|
4405
4539
|
var _a;
|
|
4406
|
-
const labels = (0,
|
|
4407
|
-
const [step, setStep] = (0,
|
|
4540
|
+
const labels = (0, import_hooks11.useLabels)();
|
|
4541
|
+
const [step, setStep] = (0, import_react12.useState)(ONBOARDING_STEPS.HOW_IT_WORKS);
|
|
4408
4542
|
const stepLabels = {
|
|
4409
4543
|
[ONBOARDING_STEPS.HOW_IT_WORKS]: labels.onboarding.modal.stepHowItWorks,
|
|
4410
4544
|
[ONBOARDING_STEPS.PROFILE_SETUP]: labels.onboarding.modal.stepProfileSetup,
|
|
4411
4545
|
[ONBOARDING_STEPS.CONNECT_ACCOUNTS]: labels.onboarding.modal.stepConnectAccounts
|
|
4412
4546
|
};
|
|
4413
4547
|
const resolvedTitle = (_a = stepLabels[step]) != null ? _a : labels.onboarding.modal.title;
|
|
4414
|
-
const [kalshiModalOpen, setKalshiModalOpen] = (0,
|
|
4415
|
-
const [kalshiConnected, setKalshiConnected] = (0,
|
|
4416
|
-
const [onchainModalOpen, setOnchainModalOpen] = (0,
|
|
4417
|
-
const [onchainConnected, setOnchainConnected] = (0,
|
|
4418
|
-
(0,
|
|
4548
|
+
const [kalshiModalOpen, setKalshiModalOpen] = (0, import_react12.useState)(false);
|
|
4549
|
+
const [kalshiConnected, setKalshiConnected] = (0, import_react12.useState)(false);
|
|
4550
|
+
const [onchainModalOpen, setOnchainModalOpen] = (0, import_react12.useState)(false);
|
|
4551
|
+
const [onchainConnected, setOnchainConnected] = (0, import_react12.useState)(false);
|
|
4552
|
+
(0, import_react12.useEffect)(() => {
|
|
4419
4553
|
if (open) {
|
|
4420
4554
|
setStep(ONBOARDING_STEPS.HOW_IT_WORKS);
|
|
4421
4555
|
setKalshiConnected(false);
|
|
4422
4556
|
setOnchainConnected(false);
|
|
4423
4557
|
}
|
|
4424
4558
|
}, [open]);
|
|
4425
|
-
const handleHowItWorksContinue = (0,
|
|
4559
|
+
const handleHowItWorksContinue = (0, import_react12.useCallback)(() => {
|
|
4426
4560
|
setStep(ONBOARDING_STEPS.PROFILE_SETUP);
|
|
4427
4561
|
}, []);
|
|
4428
|
-
const handleProfileContinue = (0,
|
|
4562
|
+
const handleProfileContinue = (0, import_react12.useCallback)(
|
|
4429
4563
|
(data) => {
|
|
4430
4564
|
onProfileSubmit == null ? void 0 : onProfileSubmit(data);
|
|
4431
4565
|
setStep(ONBOARDING_STEPS.CONNECT_ACCOUNTS);
|
|
4432
4566
|
},
|
|
4433
4567
|
[onProfileSubmit]
|
|
4434
4568
|
);
|
|
4435
|
-
const handleConnectContinue = (0,
|
|
4569
|
+
const handleConnectContinue = (0, import_react12.useCallback)(() => {
|
|
4436
4570
|
onComplete == null ? void 0 : onComplete();
|
|
4437
4571
|
}, [onComplete]);
|
|
4438
|
-
const handleOpenOnchainModal = (0,
|
|
4572
|
+
const handleOpenOnchainModal = (0, import_react12.useCallback)(() => {
|
|
4439
4573
|
setOnchainModalOpen(true);
|
|
4440
4574
|
}, []);
|
|
4441
|
-
const handleOnchainConnect = (0,
|
|
4575
|
+
const handleOnchainConnect = (0, import_react12.useCallback)(() => __async(void 0, null, function* () {
|
|
4442
4576
|
yield onConnectOnchain == null ? void 0 : onConnectOnchain();
|
|
4443
4577
|
setOnchainConnected(true);
|
|
4444
4578
|
}), [onConnectOnchain]);
|
|
4445
|
-
const handleOpenKalshiModal = (0,
|
|
4579
|
+
const handleOpenKalshiModal = (0, import_react12.useCallback)(() => {
|
|
4446
4580
|
setKalshiModalOpen(true);
|
|
4447
4581
|
}, []);
|
|
4448
|
-
const handleKalshiVerify = (0,
|
|
4582
|
+
const handleKalshiVerify = (0, import_react12.useCallback)(
|
|
4449
4583
|
(credentials) => __async(void 0, null, function* () {
|
|
4450
4584
|
yield onConnectKalshi == null ? void 0 : onConnectKalshi(credentials);
|
|
4451
4585
|
setKalshiConnected(true);
|
|
4452
4586
|
}),
|
|
4453
4587
|
[onConnectKalshi]
|
|
4454
4588
|
);
|
|
4455
|
-
return /* @__PURE__ */ (0,
|
|
4456
|
-
/* @__PURE__ */ (0,
|
|
4589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
4590
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
4457
4591
|
Modal.Container,
|
|
4458
4592
|
{
|
|
4459
4593
|
maxWidth: "600px",
|
|
4460
4594
|
"aria-label": resolvedTitle,
|
|
4461
4595
|
classNames: { container: "!rounded-agg-lg" },
|
|
4462
4596
|
children: [
|
|
4463
|
-
/* @__PURE__ */ (0,
|
|
4464
|
-
/* @__PURE__ */ (0,
|
|
4465
|
-
step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0,
|
|
4466
|
-
step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0,
|
|
4467
|
-
step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0,
|
|
4597
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Dialog4.Title, { className: "sr-only", children: resolvedTitle }),
|
|
4598
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
|
|
4599
|
+
step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
|
|
4600
|
+
step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ProfileSetupStep, { onContinue: handleProfileContinue }),
|
|
4601
|
+
step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
4468
4602
|
ConnectAccountsStep,
|
|
4469
4603
|
{
|
|
4470
4604
|
onConnectOnchain: handleOpenOnchainModal,
|
|
@@ -4478,7 +4612,7 @@ var OnboardingModal = ({
|
|
|
4478
4612
|
]
|
|
4479
4613
|
}
|
|
4480
4614
|
) }),
|
|
4481
|
-
/* @__PURE__ */ (0,
|
|
4615
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
4482
4616
|
ConnectOnchainModal,
|
|
4483
4617
|
{
|
|
4484
4618
|
open: onchainModalOpen,
|
|
@@ -4486,7 +4620,7 @@ var OnboardingModal = ({
|
|
|
4486
4620
|
onConnect: handleOnchainConnect
|
|
4487
4621
|
}
|
|
4488
4622
|
),
|
|
4489
|
-
/* @__PURE__ */ (0,
|
|
4623
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
4490
4624
|
ConnectKalshiModal,
|
|
4491
4625
|
{
|
|
4492
4626
|
open: kalshiModalOpen,
|
|
@@ -4499,7 +4633,7 @@ var OnboardingModal = ({
|
|
|
4499
4633
|
OnboardingModal.displayName = "OnboardingModal";
|
|
4500
4634
|
|
|
4501
4635
|
// src/profile/index.tsx
|
|
4502
|
-
var
|
|
4636
|
+
var import_react14 = require("react");
|
|
4503
4637
|
|
|
4504
4638
|
// src/profile/profile-modal.constants.ts
|
|
4505
4639
|
var PROFILE_TAB_KEYS = {
|
|
@@ -4512,9 +4646,9 @@ var PROFILE_TAB_ITEMS = [
|
|
|
4512
4646
|
];
|
|
4513
4647
|
|
|
4514
4648
|
// src/profile/tabs/about-tab.tsx
|
|
4515
|
-
var
|
|
4516
|
-
var
|
|
4517
|
-
var
|
|
4649
|
+
var import_react13 = require("react");
|
|
4650
|
+
var import_hooks12 = require("@agg-market/hooks");
|
|
4651
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4518
4652
|
var AboutTab = ({
|
|
4519
4653
|
avatarPreview,
|
|
4520
4654
|
onDeleteProfile,
|
|
@@ -4523,13 +4657,13 @@ var AboutTab = ({
|
|
|
4523
4657
|
onDraftAvatarChange,
|
|
4524
4658
|
draftAvatarPreview
|
|
4525
4659
|
}) => {
|
|
4526
|
-
const labels = (0,
|
|
4527
|
-
const fileInputRef = (0,
|
|
4528
|
-
const handleAvatarClick = (0,
|
|
4660
|
+
const labels = (0, import_hooks12.useLabels)();
|
|
4661
|
+
const fileInputRef = (0, import_react13.useRef)(null);
|
|
4662
|
+
const handleAvatarClick = (0, import_react13.useCallback)(() => {
|
|
4529
4663
|
var _a;
|
|
4530
4664
|
(_a = fileInputRef.current) == null ? void 0 : _a.click();
|
|
4531
4665
|
}, []);
|
|
4532
|
-
const handleFileChange = (0,
|
|
4666
|
+
const handleFileChange = (0, import_react13.useCallback)(
|
|
4533
4667
|
(e) => {
|
|
4534
4668
|
var _a;
|
|
4535
4669
|
const file = (_a = e.target.files) == null ? void 0 : _a[0];
|
|
@@ -4545,9 +4679,9 @@ var AboutTab = ({
|
|
|
4545
4679
|
[onDraftAvatarChange]
|
|
4546
4680
|
);
|
|
4547
4681
|
const resolvedPreview = draftAvatarPreview != null ? draftAvatarPreview : avatarPreview;
|
|
4548
|
-
return /* @__PURE__ */ (0,
|
|
4549
|
-
/* @__PURE__ */ (0,
|
|
4550
|
-
/* @__PURE__ */ (0,
|
|
4682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
4683
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex justify-center", children: [
|
|
4684
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4551
4685
|
"button",
|
|
4552
4686
|
{
|
|
4553
4687
|
type: "button",
|
|
@@ -4563,17 +4697,17 @@ var AboutTab = ({
|
|
|
4563
4697
|
"overflow-hidden"
|
|
4564
4698
|
),
|
|
4565
4699
|
"aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
|
|
4566
|
-
children: resolvedPreview ? /* @__PURE__ */ (0,
|
|
4567
|
-
|
|
4700
|
+
children: resolvedPreview ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4701
|
+
RemoteImage,
|
|
4568
4702
|
{
|
|
4569
4703
|
src: resolvedPreview,
|
|
4570
4704
|
alt: labels.onboarding.profileSetup.profilePreviewAlt,
|
|
4571
4705
|
className: "h-full w-full object-cover"
|
|
4572
4706
|
}
|
|
4573
|
-
) : /* @__PURE__ */ (0,
|
|
4707
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ProfileIcon, { className: "h-8 w-8 text-agg-muted-foreground" })
|
|
4574
4708
|
}
|
|
4575
4709
|
),
|
|
4576
|
-
/* @__PURE__ */ (0,
|
|
4710
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4577
4711
|
"input",
|
|
4578
4712
|
{
|
|
4579
4713
|
ref: fileInputRef,
|
|
@@ -4585,8 +4719,8 @@ var AboutTab = ({
|
|
|
4585
4719
|
}
|
|
4586
4720
|
)
|
|
4587
4721
|
] }),
|
|
4588
|
-
/* @__PURE__ */ (0,
|
|
4589
|
-
/* @__PURE__ */ (0,
|
|
4722
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
4723
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4590
4724
|
"label",
|
|
4591
4725
|
{
|
|
4592
4726
|
htmlFor: "profile-username",
|
|
@@ -4594,7 +4728,7 @@ var AboutTab = ({
|
|
|
4594
4728
|
children: "Username"
|
|
4595
4729
|
}
|
|
4596
4730
|
),
|
|
4597
|
-
/* @__PURE__ */ (0,
|
|
4731
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4598
4732
|
"input",
|
|
4599
4733
|
{
|
|
4600
4734
|
id: "profile-username",
|
|
@@ -4616,12 +4750,12 @@ var AboutTab = ({
|
|
|
4616
4750
|
}
|
|
4617
4751
|
)
|
|
4618
4752
|
] }),
|
|
4619
|
-
/* @__PURE__ */ (0,
|
|
4620
|
-
/* @__PURE__ */ (0,
|
|
4621
|
-
/* @__PURE__ */ (0,
|
|
4622
|
-
/* @__PURE__ */ (0,
|
|
4753
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-4", children: [
|
|
4754
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
4755
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: "Delete your profile" }),
|
|
4756
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: "This will permanently delete your account and all of its data. You will not be able to reactivate this account." })
|
|
4623
4757
|
] }),
|
|
4624
|
-
/* @__PURE__ */ (0,
|
|
4758
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4625
4759
|
"button",
|
|
4626
4760
|
{
|
|
4627
4761
|
type: "button",
|
|
@@ -4643,9 +4777,9 @@ var AboutTab = ({
|
|
|
4643
4777
|
AboutTab.displayName = "AboutTab";
|
|
4644
4778
|
|
|
4645
4779
|
// src/profile/tabs/accounts-wallets-tab.tsx
|
|
4646
|
-
var
|
|
4647
|
-
var SectionTitle = ({ children }) => /* @__PURE__ */ (0,
|
|
4648
|
-
var AccountRow = ({ children, className }) => /* @__PURE__ */ (0,
|
|
4780
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4781
|
+
var SectionTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
|
|
4782
|
+
var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4649
4783
|
"div",
|
|
4650
4784
|
{
|
|
4651
4785
|
className: cn(
|
|
@@ -4657,7 +4791,7 @@ var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
4657
4791
|
children
|
|
4658
4792
|
}
|
|
4659
4793
|
);
|
|
4660
|
-
var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0,
|
|
4794
|
+
var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4661
4795
|
"button",
|
|
4662
4796
|
{
|
|
4663
4797
|
type: "button",
|
|
@@ -4666,7 +4800,7 @@ var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime7
|
|
|
4666
4800
|
children: "Connect"
|
|
4667
4801
|
}
|
|
4668
4802
|
);
|
|
4669
|
-
var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0,
|
|
4803
|
+
var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4670
4804
|
"button",
|
|
4671
4805
|
{
|
|
4672
4806
|
type: "button",
|
|
@@ -4691,19 +4825,19 @@ var AccountsWalletsTab = ({
|
|
|
4691
4825
|
const twitter = socialAccounts == null ? void 0 : socialAccounts.twitter;
|
|
4692
4826
|
const discord = socialAccounts == null ? void 0 : socialAccounts.discord;
|
|
4693
4827
|
const telegram = socialAccounts == null ? void 0 : socialAccounts.telegram;
|
|
4694
|
-
return /* @__PURE__ */ (0,
|
|
4695
|
-
/* @__PURE__ */ (0,
|
|
4696
|
-
/* @__PURE__ */ (0,
|
|
4697
|
-
exchanges.length === 0 ? /* @__PURE__ */ (0,
|
|
4828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
4829
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4830
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(SectionTitle, { children: "Exchanges" }),
|
|
4831
|
+
exchanges.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: "No exchange accounts connected." }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex flex-col gap-2", children: exchanges.map((account) => {
|
|
4698
4832
|
var _a;
|
|
4699
4833
|
const displayName = (_a = venueLogoLabels[account.venue]) != null ? _a : account.venue;
|
|
4700
|
-
return /* @__PURE__ */ (0,
|
|
4701
|
-
/* @__PURE__ */ (0,
|
|
4702
|
-
/* @__PURE__ */ (0,
|
|
4703
|
-
/* @__PURE__ */ (0,
|
|
4704
|
-
/* @__PURE__ */ (0,
|
|
4705
|
-
/* @__PURE__ */ (0,
|
|
4706
|
-
account.verified ? /* @__PURE__ */ (0,
|
|
4834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(AccountRow, { children: [
|
|
4835
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center gap-3 min-w-0", children: [
|
|
4836
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(VenueLogo, { venue: account.venue, size: "small" }),
|
|
4837
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: displayName }),
|
|
4838
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
4839
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "truncate text-agg-base font-agg-normal leading-6 text-agg-foreground", children: account.displayAddress }),
|
|
4840
|
+
account.verified ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4707
4841
|
Icon,
|
|
4708
4842
|
{
|
|
4709
4843
|
name: "check-badge",
|
|
@@ -4713,39 +4847,39 @@ var AccountsWalletsTab = ({
|
|
|
4713
4847
|
) : null
|
|
4714
4848
|
] })
|
|
4715
4849
|
] }),
|
|
4716
|
-
/* @__PURE__ */ (0,
|
|
4850
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DisconnectTextButton, { onClick: () => onDisconnectExchange(account.venue) })
|
|
4717
4851
|
] }, account.venue);
|
|
4718
4852
|
}) })
|
|
4719
4853
|
] }),
|
|
4720
|
-
/* @__PURE__ */ (0,
|
|
4721
|
-
/* @__PURE__ */ (0,
|
|
4722
|
-
/* @__PURE__ */ (0,
|
|
4723
|
-
/* @__PURE__ */ (0,
|
|
4724
|
-
/* @__PURE__ */ (0,
|
|
4725
|
-
/* @__PURE__ */ (0,
|
|
4726
|
-
/* @__PURE__ */ (0,
|
|
4854
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4855
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(SectionTitle, { children: "Social Accounts" }),
|
|
4856
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
4857
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(AccountRow, { children: [
|
|
4858
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4859
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { name: "twitter", size: "small", color: "currentColor" }) }),
|
|
4860
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "X (Twitter)" })
|
|
4727
4861
|
] }),
|
|
4728
|
-
(twitter == null ? void 0 : twitter.connected) ? /* @__PURE__ */ (0,
|
|
4862
|
+
(twitter == null ? void 0 : twitter.connected) ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DisconnectTextButton, { onClick: onDisconnectTwitter }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ConnectTextButton, { onClick: onConnectTwitter })
|
|
4729
4863
|
] }),
|
|
4730
|
-
/* @__PURE__ */ (0,
|
|
4731
|
-
/* @__PURE__ */ (0,
|
|
4732
|
-
/* @__PURE__ */ (0,
|
|
4733
|
-
/* @__PURE__ */ (0,
|
|
4864
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(AccountRow, { children: [
|
|
4865
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4866
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-[#5865F2]", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { name: "discord", size: "small", color: "currentColor" }) }),
|
|
4867
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Discord" })
|
|
4734
4868
|
] }),
|
|
4735
|
-
(discord == null ? void 0 : discord.connected) ? /* @__PURE__ */ (0,
|
|
4869
|
+
(discord == null ? void 0 : discord.connected) ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DisconnectTextButton, { onClick: onDisconnectDiscord }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ConnectTextButton, { onClick: onConnectDiscord })
|
|
4736
4870
|
] }),
|
|
4737
|
-
/* @__PURE__ */ (0,
|
|
4738
|
-
/* @__PURE__ */ (0,
|
|
4739
|
-
/* @__PURE__ */ (0,
|
|
4740
|
-
/* @__PURE__ */ (0,
|
|
4871
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(AccountRow, { children: [
|
|
4872
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4873
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-[#26A5E4]", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { name: "telegram", size: "small", color: "currentColor" }) }),
|
|
4874
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Telegram" })
|
|
4741
4875
|
] }),
|
|
4742
|
-
(telegram == null ? void 0 : telegram.connected) ? /* @__PURE__ */ (0,
|
|
4876
|
+
(telegram == null ? void 0 : telegram.connected) ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DisconnectTextButton, { onClick: onDisconnectTelegram }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ConnectTextButton, { onClick: onConnectTelegram })
|
|
4743
4877
|
] })
|
|
4744
4878
|
] })
|
|
4745
4879
|
] }),
|
|
4746
|
-
/* @__PURE__ */ (0,
|
|
4747
|
-
/* @__PURE__ */ (0,
|
|
4748
|
-
/* @__PURE__ */ (0,
|
|
4880
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4881
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(SectionTitle, { children: "Email Address" }),
|
|
4882
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
4749
4883
|
"button",
|
|
4750
4884
|
{
|
|
4751
4885
|
type: "button",
|
|
@@ -4757,11 +4891,11 @@ var AccountsWalletsTab = ({
|
|
|
4757
4891
|
"cursor-pointer hover:bg-agg-secondary-hover"
|
|
4758
4892
|
),
|
|
4759
4893
|
children: [
|
|
4760
|
-
/* @__PURE__ */ (0,
|
|
4761
|
-
/* @__PURE__ */ (0,
|
|
4762
|
-
/* @__PURE__ */ (0,
|
|
4894
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4895
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { name: "email", size: "small", color: "currentColor" }) }),
|
|
4896
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: email != null ? email : "Connect email" })
|
|
4763
4897
|
] }),
|
|
4764
|
-
/* @__PURE__ */ (0,
|
|
4898
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon, { name: "chevron-right", size: "small", color: "currentColor" })
|
|
4765
4899
|
]
|
|
4766
4900
|
}
|
|
4767
4901
|
)
|
|
@@ -4771,7 +4905,7 @@ var AccountsWalletsTab = ({
|
|
|
4771
4905
|
AccountsWalletsTab.displayName = "AccountsWalletsTab";
|
|
4772
4906
|
|
|
4773
4907
|
// src/profile/index.tsx
|
|
4774
|
-
var
|
|
4908
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
4775
4909
|
var ProfileModal = ({
|
|
4776
4910
|
open,
|
|
4777
4911
|
onOpenChange,
|
|
@@ -4791,15 +4925,15 @@ var ProfileModal = ({
|
|
|
4791
4925
|
onDisconnectTelegram,
|
|
4792
4926
|
onConnectEmail
|
|
4793
4927
|
}) => {
|
|
4794
|
-
const [activeTab, setActiveTab] = (0,
|
|
4795
|
-
const [draftUsername, setDraftUsername] = (0,
|
|
4796
|
-
const [draftAvatarFile, setDraftAvatarFile] = (0,
|
|
4797
|
-
const [draftAvatarPreview, setDraftAvatarPreview] = (0,
|
|
4798
|
-
const [isSaving, setIsSaving] = (0,
|
|
4799
|
-
(0,
|
|
4928
|
+
const [activeTab, setActiveTab] = (0, import_react14.useState)(PROFILE_TAB_KEYS.ABOUT);
|
|
4929
|
+
const [draftUsername, setDraftUsername] = (0, import_react14.useState)(username != null ? username : "");
|
|
4930
|
+
const [draftAvatarFile, setDraftAvatarFile] = (0, import_react14.useState)();
|
|
4931
|
+
const [draftAvatarPreview, setDraftAvatarPreview] = (0, import_react14.useState)();
|
|
4932
|
+
const [isSaving, setIsSaving] = (0, import_react14.useState)(false);
|
|
4933
|
+
(0, import_react14.useEffect)(() => {
|
|
4800
4934
|
setDraftUsername(username != null ? username : "");
|
|
4801
4935
|
}, [username]);
|
|
4802
|
-
const handleOpenChange = (0,
|
|
4936
|
+
const handleOpenChange = (0, import_react14.useCallback)(
|
|
4803
4937
|
(isOpen) => {
|
|
4804
4938
|
if (!isOpen) {
|
|
4805
4939
|
setActiveTab(PROFILE_TAB_KEYS.ABOUT);
|
|
@@ -4820,7 +4954,7 @@ var ProfileModal = ({
|
|
|
4820
4954
|
setDraftAvatarPreview
|
|
4821
4955
|
]
|
|
4822
4956
|
);
|
|
4823
|
-
const handleDraftAvatarChange = (0,
|
|
4957
|
+
const handleDraftAvatarChange = (0, import_react14.useCallback)(
|
|
4824
4958
|
(file, preview) => {
|
|
4825
4959
|
setDraftAvatarFile(file);
|
|
4826
4960
|
setDraftAvatarPreview(preview);
|
|
@@ -4828,7 +4962,7 @@ var ProfileModal = ({
|
|
|
4828
4962
|
[]
|
|
4829
4963
|
);
|
|
4830
4964
|
const hasChanges = draftUsername !== (username != null ? username : "") || draftAvatarFile !== void 0;
|
|
4831
|
-
const handleSave = (0,
|
|
4965
|
+
const handleSave = (0, import_react14.useCallback)(() => {
|
|
4832
4966
|
setIsSaving(true);
|
|
4833
4967
|
onSave({
|
|
4834
4968
|
username: draftUsername || void 0,
|
|
@@ -4840,16 +4974,16 @@ var ProfileModal = ({
|
|
|
4840
4974
|
onOpenChange(false);
|
|
4841
4975
|
}, 500);
|
|
4842
4976
|
}, [draftUsername, draftAvatarFile, draftAvatarPreview, onSave, onOpenChange]);
|
|
4843
|
-
const handleCancel = (0,
|
|
4977
|
+
const handleCancel = (0, import_react14.useCallback)(() => {
|
|
4844
4978
|
handleOpenChange(false);
|
|
4845
4979
|
}, [handleOpenChange]);
|
|
4846
|
-
return /* @__PURE__ */ (0,
|
|
4847
|
-
/* @__PURE__ */ (0,
|
|
4848
|
-
/* @__PURE__ */ (0,
|
|
4849
|
-
/* @__PURE__ */ (0,
|
|
4850
|
-
/* @__PURE__ */ (0,
|
|
4980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Modal.Container, { maxWidth: "800px", "aria-label": "Edit Profile", children: [
|
|
4981
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Modal.Header, { title: "Edit Profile" }),
|
|
4982
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Modal.Body, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col sm:flex-row sm:gap-10", children: [
|
|
4983
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "shrink-0", children: [
|
|
4984
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "flex gap-2 sm:hidden mb-6", children: PROFILE_TAB_ITEMS.map((tab) => {
|
|
4851
4985
|
const isActive = activeTab === tab.value;
|
|
4852
|
-
return /* @__PURE__ */ (0,
|
|
4986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
4853
4987
|
"button",
|
|
4854
4988
|
{
|
|
4855
4989
|
type: "button",
|
|
@@ -4862,14 +4996,14 @@ var ProfileModal = ({
|
|
|
4862
4996
|
isActive ? "font-agg-normal text-agg-foreground bg-agg-secondary-hover border-agg-primary" : "font-agg-normal text-agg-foreground border-transparent"
|
|
4863
4997
|
),
|
|
4864
4998
|
children: [
|
|
4865
|
-
/* @__PURE__ */ (0,
|
|
4866
|
-
/* @__PURE__ */ (0,
|
|
4999
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
|
|
5000
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "whitespace-nowrap", children: tab.label })
|
|
4867
5001
|
]
|
|
4868
5002
|
},
|
|
4869
5003
|
tab.value
|
|
4870
5004
|
);
|
|
4871
5005
|
}) }),
|
|
4872
|
-
/* @__PURE__ */ (0,
|
|
5006
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4873
5007
|
"nav",
|
|
4874
5008
|
{
|
|
4875
5009
|
className: cn(
|
|
@@ -4884,7 +5018,7 @@ var ProfileModal = ({
|
|
|
4884
5018
|
"aria-label": "Profile sections",
|
|
4885
5019
|
children: PROFILE_TAB_ITEMS.map((tab) => {
|
|
4886
5020
|
const isActive = activeTab === tab.value;
|
|
4887
|
-
return /* @__PURE__ */ (0,
|
|
5021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
4888
5022
|
"button",
|
|
4889
5023
|
{
|
|
4890
5024
|
type: "button",
|
|
@@ -4899,9 +5033,9 @@ var ProfileModal = ({
|
|
|
4899
5033
|
isActive ? "font-agg-normal text-agg-foreground bg-agg-secondary-hover" : "font-agg-normal text-agg-foreground"
|
|
4900
5034
|
),
|
|
4901
5035
|
children: [
|
|
4902
|
-
isActive ? /* @__PURE__ */ (0,
|
|
4903
|
-
/* @__PURE__ */ (0,
|
|
4904
|
-
/* @__PURE__ */ (0,
|
|
5036
|
+
isActive ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
|
|
5037
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
|
|
5038
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "shrink-0 whitespace-nowrap", children: tab.label })
|
|
4905
5039
|
]
|
|
4906
5040
|
},
|
|
4907
5041
|
tab.value
|
|
@@ -4910,8 +5044,8 @@ var ProfileModal = ({
|
|
|
4910
5044
|
}
|
|
4911
5045
|
)
|
|
4912
5046
|
] }),
|
|
4913
|
-
/* @__PURE__ */ (0,
|
|
4914
|
-
activeTab === PROFILE_TAB_KEYS.ABOUT ? /* @__PURE__ */ (0,
|
|
5047
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
5048
|
+
activeTab === PROFILE_TAB_KEYS.ABOUT ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4915
5049
|
AboutTab,
|
|
4916
5050
|
{
|
|
4917
5051
|
username,
|
|
@@ -4924,7 +5058,7 @@ var ProfileModal = ({
|
|
|
4924
5058
|
draftAvatarPreview
|
|
4925
5059
|
}
|
|
4926
5060
|
) : null,
|
|
4927
|
-
activeTab === PROFILE_TAB_KEYS.ACCOUNTS_WALLETS ? /* @__PURE__ */ (0,
|
|
5061
|
+
activeTab === PROFILE_TAB_KEYS.ACCOUNTS_WALLETS ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4928
5062
|
AccountsWalletsTab,
|
|
4929
5063
|
{
|
|
4930
5064
|
exchanges,
|
|
@@ -4942,9 +5076,9 @@ var ProfileModal = ({
|
|
|
4942
5076
|
) : null
|
|
4943
5077
|
] })
|
|
4944
5078
|
] }) }),
|
|
4945
|
-
/* @__PURE__ */ (0,
|
|
4946
|
-
/* @__PURE__ */ (0,
|
|
4947
|
-
/* @__PURE__ */ (0,
|
|
5079
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Modal.Footer, { children: [
|
|
5080
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, className: "min-w-[120px]", children: "Cancel" }),
|
|
5081
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4948
5082
|
Button,
|
|
4949
5083
|
{
|
|
4950
5084
|
variant: "primary",
|