@agg-build/ui 4.7.4 → 4.9.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.
Files changed (80) hide show
  1. package/dist/{chunk-2347CDTT.mjs → chunk-GG57TRNE.mjs} +393 -155
  2. package/dist/{chunk-CB3DDQBP.mjs → chunk-GKYBQEBC.mjs} +462 -171
  3. package/dist/{chunk-3X5ICUUC.mjs → chunk-GVIS3YXU.mjs} +2 -2
  4. package/dist/{chunk-XR6C3MZX.mjs → chunk-H7L4HDXS.mjs} +266 -162
  5. package/dist/{chunk-UQ7XJIAZ.mjs → chunk-NYL6A6AD.mjs} +953 -785
  6. package/dist/{chunk-MAQ52KM5.mjs → chunk-TNNLRRHC.mjs} +1 -1
  7. package/dist/{chunk-VQTOMYOA.mjs → chunk-XQLLZTEW.mjs} +296 -166
  8. package/dist/events.js +1195 -1041
  9. package/dist/events.mjs +3 -3
  10. package/dist/index.js +4726 -3772
  11. package/dist/index.mjs +58 -19
  12. package/dist/modals.js +1886 -1181
  13. package/dist/modals.mjs +12 -4
  14. package/dist/pages.js +3551 -2872
  15. package/dist/pages.mjs +6 -6
  16. package/dist/primitives.js +953 -785
  17. package/dist/primitives.mjs +1 -1
  18. package/dist/styles.css +1 -1
  19. package/dist/tailwind.css +1 -1
  20. package/dist/trading.js +2255 -1710
  21. package/dist/trading.mjs +10 -6
  22. package/dist/types/index.d.mts +1 -0
  23. package/dist/types/index.d.ts +1 -0
  24. package/dist/types/kyc/index.d.mts +3 -0
  25. package/dist/types/kyc/index.d.ts +3 -0
  26. package/dist/types/kyc/shared-kyc-modal.d.mts +12 -0
  27. package/dist/types/kyc/shared-kyc-modal.d.ts +12 -0
  28. package/dist/types/kyc/shared-kyc.d.mts +31 -0
  29. package/dist/types/kyc/shared-kyc.d.ts +31 -0
  30. package/dist/types/kyc/use-shared-kyc-flow.d.mts +19 -0
  31. package/dist/types/kyc/use-shared-kyc-flow.d.ts +19 -0
  32. package/dist/types/modals/index.d.mts +2 -0
  33. package/dist/types/modals/index.d.ts +2 -0
  34. package/dist/types/pages/event-market/event-market.shared.d.mts +2 -1
  35. package/dist/types/pages/event-market/event-market.shared.d.ts +2 -1
  36. package/dist/types/pages/event-market/event-market.types.d.mts +2 -0
  37. package/dist/types/pages/event-market/event-market.types.d.ts +2 -0
  38. package/dist/types/pages/event-market/sports-event-market-page.d.mts +1 -1
  39. package/dist/types/pages/event-market/sports-event-market-page.d.ts +1 -1
  40. package/dist/types/pages/user-profile/components/positions-value-card.d.mts +17 -1
  41. package/dist/types/pages/user-profile/components/positions-value-card.d.ts +17 -1
  42. package/dist/types/pages/user-profile/components/user-info-card.d.mts +11 -1
  43. package/dist/types/pages/user-profile/components/user-info-card.d.ts +11 -1
  44. package/dist/types/paper-trading/index.d.mts +6 -0
  45. package/dist/types/paper-trading/index.d.ts +6 -0
  46. package/dist/types/paper-trading/paper-onboarding-modal.d.mts +15 -0
  47. package/dist/types/paper-trading/paper-onboarding-modal.d.ts +15 -0
  48. package/dist/types/paper-trading/paper-onboarding-modal.types.d.mts +33 -0
  49. package/dist/types/paper-trading/paper-onboarding-modal.types.d.ts +33 -0
  50. package/dist/types/paper-trading/paper-trading-badge.d.mts +50 -0
  51. package/dist/types/paper-trading/paper-trading-badge.d.ts +50 -0
  52. package/dist/types/paper-trading/paper-trading-onboarding.d.mts +16 -0
  53. package/dist/types/paper-trading/paper-trading-onboarding.d.ts +16 -0
  54. package/dist/types/primitives/header/header.types.d.mts +16 -0
  55. package/dist/types/primitives/header/header.types.d.ts +16 -0
  56. package/dist/types/primitives/header/index.d.mts +1 -1
  57. package/dist/types/primitives/header/index.d.ts +1 -1
  58. package/dist/types/primitives/icon/registry.d.mts +20 -0
  59. package/dist/types/primitives/icon/registry.d.ts +20 -0
  60. package/dist/types/primitives/icon/svg/paper-buying-power.d.mts +11 -0
  61. package/dist/types/primitives/icon/svg/paper-buying-power.d.ts +11 -0
  62. package/dist/types/primitives/icon/svg/paper-earnings.d.mts +11 -0
  63. package/dist/types/primitives/icon/svg/paper-earnings.d.ts +11 -0
  64. package/dist/types/primitives/icon/svg/paper-onboarding-funds.d.mts +12 -0
  65. package/dist/types/primitives/icon/svg/paper-onboarding-funds.d.ts +12 -0
  66. package/dist/types/primitives/icon/svg/paper-onboarding-markets.d.mts +12 -0
  67. package/dist/types/primitives/icon/svg/paper-onboarding-markets.d.ts +12 -0
  68. package/dist/types/primitives/icon/svg/paper-onboarding-performance.d.mts +12 -0
  69. package/dist/types/primitives/icon/svg/paper-onboarding-performance.d.ts +12 -0
  70. package/dist/types/primitives/modal/modal.types.d.mts +6 -0
  71. package/dist/types/primitives/modal/modal.types.d.ts +6 -0
  72. package/dist/types/trading/index.d.mts +1 -0
  73. package/dist/types/trading/index.d.ts +1 -0
  74. package/dist/types/trading/place-order/index.d.mts +1 -1
  75. package/dist/types/trading/place-order/index.d.ts +1 -1
  76. package/dist/types/trading/place-order/index.place-order.types.d.mts +8 -0
  77. package/dist/types/trading/place-order/index.place-order.types.d.ts +8 -0
  78. package/dist/types/trading/types.d.mts +2 -0
  79. package/dist/types/trading/types.d.ts +2 -0
  80. package/package.json +3 -3
@@ -7,18 +7,20 @@ import {
7
7
  ChevronRightIcon,
8
8
  CreateAccountIcon,
9
9
  Icon,
10
+ InlineAlert,
10
11
  LinkAccountsIcon,
11
12
  Modal,
12
13
  ProfileIcon,
13
14
  RemoteImage,
14
15
  StayInControlIcon,
16
+ Typography,
15
17
  VenueLogo,
16
18
  WarningIcon,
17
19
  __async,
18
20
  __spreadProps,
19
21
  __spreadValues,
20
22
  cn
21
- } from "./chunk-UQ7XJIAZ.mjs";
23
+ } from "./chunk-NYL6A6AD.mjs";
22
24
 
23
25
  // src/geo-block-banner/index.tsx
24
26
  import { useLabels } from "@agg-build/hooks";
@@ -48,9 +50,110 @@ var GeoBlockBanner = ({
48
50
  };
49
51
  GeoBlockBanner.displayName = "GeoBlockBanner";
50
52
 
53
+ // src/kyc/shared-kyc-modal.tsx
54
+ import { useLabels as useLabels2 } from "@agg-build/hooks";
55
+ import * as Dialog from "@radix-ui/react-dialog";
56
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
57
+ var SharedKycModal = ({
58
+ open,
59
+ state = "initial",
60
+ errorMessage,
61
+ onOpenChange,
62
+ onStartVerification
63
+ }) => {
64
+ const labels = useLabels2();
65
+ const modalLabels = labels.trading.sharedKyc.modal;
66
+ const isInitiating = state === "initiating";
67
+ const handleOpenChange = (nextOpen) => {
68
+ if (isInitiating && !nextOpen) return;
69
+ onOpenChange(nextOpen);
70
+ };
71
+ return /* @__PURE__ */ jsx2(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs2(
72
+ Modal.Container,
73
+ {
74
+ maxWidth: "420px",
75
+ "aria-label": modalLabels.ariaLabel,
76
+ classNames: { container: "!rounded-agg-2xl" },
77
+ children: [
78
+ /* @__PURE__ */ jsx2("div", { className: "flex h-14 shrink-0 items-center justify-end px-5", children: /* @__PURE__ */ jsx2(
79
+ Dialog.Close,
80
+ {
81
+ "aria-label": labels.common.close,
82
+ disabled: isInitiating,
83
+ className: "flex size-11 cursor-pointer items-center justify-center rounded-agg-full text-agg-foreground hover:bg-agg-secondary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary disabled:cursor-not-allowed disabled:opacity-50",
84
+ children: /* @__PURE__ */ jsx2(Icon, { name: "close", size: "small", "aria-hidden": "true" })
85
+ }
86
+ ) }),
87
+ /* @__PURE__ */ jsx2(Modal.Body, { classNames: { root: "!px-8 !pb-9 !pt-0" }, children: state === "success" ? /* @__PURE__ */ jsxs2(
88
+ "div",
89
+ {
90
+ className: "flex flex-col items-center gap-6 text-center",
91
+ role: "status",
92
+ "aria-live": "polite",
93
+ children: [
94
+ /* @__PURE__ */ jsx2("div", { className: "flex size-12 items-center justify-center rounded-agg-full border border-agg-success bg-agg-success/10 text-agg-success", children: /* @__PURE__ */ jsx2(Icon, { name: "success-check", className: "size-5", "aria-hidden": "true" }) }),
95
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col items-center gap-2", children: [
96
+ /* @__PURE__ */ jsx2(Dialog.Title, { children: /* @__PURE__ */ jsx2(Typography, { as: "span", variant: "body-large-strong", children: modalLabels.successTitle }) }),
97
+ /* @__PURE__ */ jsx2(Dialog.Description, { children: /* @__PURE__ */ jsx2(Typography, { as: "span", variant: "label", className: "text-pretty text-agg-foreground", children: modalLabels.successDescription }) })
98
+ ] }),
99
+ /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "large", onClick: () => handleOpenChange(false), children: modalLabels.done })
100
+ ]
101
+ }
102
+ ) : /* @__PURE__ */ jsxs2("div", { className: "flex flex-col items-center gap-6 text-center", children: [
103
+ /* @__PURE__ */ jsx2(
104
+ Icon,
105
+ {
106
+ name: "user-trust",
107
+ className: "h-12! w-12! text-agg-muted-foreground",
108
+ "aria-hidden": "true"
109
+ }
110
+ ),
111
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col items-center gap-2", children: [
112
+ /* @__PURE__ */ jsx2(Dialog.Title, { children: /* @__PURE__ */ jsx2(Typography, { as: "span", variant: "body-large-strong", children: state === "pending" ? modalLabels.pendingTitle : modalLabels.title }) }),
113
+ /* @__PURE__ */ jsx2(Dialog.Description, { children: /* @__PURE__ */ jsx2(Typography, { as: "span", variant: "label", className: "text-pretty text-agg-foreground", children: state === "pending" ? modalLabels.pendingDescription : modalLabels.freeDescription }) })
114
+ ] }),
115
+ state === "error" || state === "pending" && errorMessage ? /* @__PURE__ */ jsx2(
116
+ InlineAlert,
117
+ {
118
+ tone: "error",
119
+ variant: "surface",
120
+ message: errorMessage || modalLabels.error
121
+ }
122
+ ) : null,
123
+ /* @__PURE__ */ jsxs2("div", { className: "flex flex-col items-center gap-4", children: [
124
+ /* @__PURE__ */ jsx2(
125
+ Button,
126
+ {
127
+ variant: "primary",
128
+ size: "large",
129
+ isLoading: isInitiating,
130
+ disabled: isInitiating,
131
+ "aria-label": state === "pending" ? modalLabels.checkStatus : modalLabels.startVerification,
132
+ onClick: onStartVerification,
133
+ children: state === "pending" ? modalLabels.checkStatus : modalLabels.startVerification
134
+ }
135
+ ),
136
+ /* @__PURE__ */ jsx2(
137
+ Button,
138
+ {
139
+ variant: "tertiary",
140
+ size: "large",
141
+ disabled: isInitiating,
142
+ onClick: () => handleOpenChange(false),
143
+ children: modalLabels.doItLater
144
+ }
145
+ )
146
+ ] })
147
+ ] }) })
148
+ ]
149
+ }
150
+ ) });
151
+ };
152
+ SharedKycModal.displayName = "SharedKycModal";
153
+
51
154
  // src/onboarding/steps/how-it-works.tsx
52
155
  import { useCallback, useRef, useState } from "react";
53
- import { useLabels as useLabels2 } from "@agg-build/hooks";
156
+ import { useLabels as useLabels3 } from "@agg-build/hooks";
54
157
 
55
158
  // src/onboarding/onboarding-modal.constants.ts
56
159
  import { isVenueActive, Venue } from "@agg-build/sdk";
@@ -72,15 +175,15 @@ var ONCHAIN_VENUES = [
72
175
  ].filter(isVenueActive);
73
176
 
74
177
  // src/onboarding/steps/how-it-works.tsx
75
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
178
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
76
179
  var defaultIcons = {
77
- createAccount: /* @__PURE__ */ jsx2(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
78
- linkAccounts: /* @__PURE__ */ jsx2(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
79
- bestPrices: /* @__PURE__ */ jsx2(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
80
- stayInControl: /* @__PURE__ */ jsx2(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
180
+ createAccount: /* @__PURE__ */ jsx3(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
181
+ linkAccounts: /* @__PURE__ */ jsx3(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
182
+ bestPrices: /* @__PURE__ */ jsx3(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
183
+ stayInControl: /* @__PURE__ */ jsx3(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
81
184
  };
82
185
  var HowItWorksStep = ({ onContinue, icons }) => {
83
- const labels = useLabels2();
186
+ const labels = useLabels3();
84
187
  const scrollRef = useRef(null);
85
188
  const [showTopGradient, setShowTopGradient] = useState(false);
86
189
  const [showBottomGradient, setShowBottomGradient] = useState(true);
@@ -90,10 +193,10 @@ var HowItWorksStep = ({ onContinue, icons }) => {
90
193
  setShowTopGradient(el.scrollTop > 0);
91
194
  setShowBottomGradient(el.scrollTop + el.clientHeight < el.scrollHeight - 1);
92
195
  }, []);
93
- return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
94
- /* @__PURE__ */ jsx2("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
95
- /* @__PURE__ */ jsxs2("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
96
- /* @__PURE__ */ jsx2(
196
+ return /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
197
+ /* @__PURE__ */ jsx3("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
198
+ /* @__PURE__ */ jsxs3("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
199
+ /* @__PURE__ */ jsx3(
97
200
  "div",
98
201
  {
99
202
  ref: scrollRef,
@@ -103,7 +206,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
103
206
  var _a;
104
207
  const icon = (_a = icons == null ? void 0 : icons[featureKey]) != null ? _a : defaultIcons[featureKey];
105
208
  const feature = labels.onboarding.howItWorks.features[featureKey];
106
- return /* @__PURE__ */ jsxs2(
209
+ return /* @__PURE__ */ jsxs3(
107
210
  "div",
108
211
  {
109
212
  className: cn(
@@ -112,11 +215,11 @@ var HowItWorksStep = ({ onContinue, icons }) => {
112
215
  "bg-agg-secondary-hover"
113
216
  ),
114
217
  children: [
115
- /* @__PURE__ */ jsxs2("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
116
- /* @__PURE__ */ jsx2("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
117
- /* @__PURE__ */ jsx2("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
218
+ /* @__PURE__ */ jsxs3("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
219
+ /* @__PURE__ */ jsx3("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
220
+ /* @__PURE__ */ jsx3("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
118
221
  ] }),
119
- icon ? /* @__PURE__ */ jsx2("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
222
+ icon ? /* @__PURE__ */ jsx3("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
120
223
  ]
121
224
  },
122
225
  featureKey
@@ -124,7 +227,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
124
227
  })
125
228
  }
126
229
  ),
127
- /* @__PURE__ */ jsx2(
230
+ /* @__PURE__ */ jsx3(
128
231
  "div",
129
232
  {
130
233
  className: cn(
@@ -135,7 +238,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
135
238
  )
136
239
  }
137
240
  ),
138
- /* @__PURE__ */ jsx2(
241
+ /* @__PURE__ */ jsx3(
139
242
  "div",
140
243
  {
141
244
  className: cn(
@@ -147,17 +250,17 @@ var HowItWorksStep = ({ onContinue, icons }) => {
147
250
  }
148
251
  )
149
252
  ] }),
150
- /* @__PURE__ */ jsx2(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
253
+ /* @__PURE__ */ jsx3(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
151
254
  ] });
152
255
  };
153
256
  HowItWorksStep.displayName = "HowItWorksStep";
154
257
 
155
258
  // src/onboarding/steps/profile-setup.tsx
156
259
  import { useCallback as useCallback2, useRef as useRef2, useState as useState2 } from "react";
157
- import { useLabels as useLabels3 } from "@agg-build/hooks";
158
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
260
+ import { useLabels as useLabels4 } from "@agg-build/hooks";
261
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
159
262
  var ProfileSetupStep = ({ onContinue }) => {
160
- const labels = useLabels3();
263
+ const labels = useLabels4();
161
264
  const [username, setUsername] = useState2("");
162
265
  const [avatarFile, setAvatarFile] = useState2();
163
266
  const [avatarPreview, setAvatarPreview] = useState2();
@@ -185,11 +288,11 @@ var ProfileSetupStep = ({ onContinue }) => {
185
288
  avatarPreview
186
289
  });
187
290
  }, [username, avatarFile, avatarPreview, onContinue]);
188
- return /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-7", children: [
189
- /* @__PURE__ */ jsx3("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
190
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-5 items-center w-full", children: [
191
- /* @__PURE__ */ jsxs3("div", { className: "flex justify-center", children: [
192
- /* @__PURE__ */ jsxs3(
291
+ return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-7", children: [
292
+ /* @__PURE__ */ jsx4("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
293
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-5 items-center w-full", children: [
294
+ /* @__PURE__ */ jsxs4("div", { className: "flex justify-center", children: [
295
+ /* @__PURE__ */ jsxs4(
193
296
  "button",
194
297
  {
195
298
  type: "button",
@@ -205,13 +308,13 @@ var ProfileSetupStep = ({ onContinue }) => {
205
308
  ),
206
309
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
207
310
  children: [
208
- !avatarPreview ? /* @__PURE__ */ jsx3(
311
+ !avatarPreview ? /* @__PURE__ */ jsx4(
209
312
  "svg",
210
313
  {
211
314
  "aria-hidden": true,
212
315
  viewBox: "0 0 80 80",
213
316
  className: "pointer-events-none absolute inset-0 h-full w-full text-agg-separator group-hover:text-agg-muted-foreground",
214
- children: /* @__PURE__ */ jsx3(
317
+ children: /* @__PURE__ */ jsx4(
215
318
  "circle",
216
319
  {
217
320
  cx: "40",
@@ -225,18 +328,18 @@ var ProfileSetupStep = ({ onContinue }) => {
225
328
  )
226
329
  }
227
330
  ) : null,
228
- avatarPreview ? /* @__PURE__ */ jsx3(
331
+ avatarPreview ? /* @__PURE__ */ jsx4(
229
332
  RemoteImage,
230
333
  {
231
334
  src: avatarPreview,
232
335
  alt: labels.onboarding.profileSetup.profilePreviewAlt,
233
336
  className: "h-full w-full object-cover"
234
337
  }
235
- ) : /* @__PURE__ */ jsx3(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
338
+ ) : /* @__PURE__ */ jsx4(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
236
339
  ]
237
340
  }
238
341
  ),
239
- /* @__PURE__ */ jsx3(
342
+ /* @__PURE__ */ jsx4(
240
343
  "input",
241
344
  {
242
345
  ref: fileInputRef,
@@ -248,8 +351,8 @@ var ProfileSetupStep = ({ onContinue }) => {
248
351
  }
249
352
  )
250
353
  ] }),
251
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-2 w-full", children: [
252
- /* @__PURE__ */ jsx3(
354
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-2 w-full", children: [
355
+ /* @__PURE__ */ jsx4(
253
356
  "label",
254
357
  {
255
358
  htmlFor: "onboarding-username",
@@ -257,7 +360,7 @@ var ProfileSetupStep = ({ onContinue }) => {
257
360
  children: labels.onboarding.profileSetup.usernameLabel
258
361
  }
259
362
  ),
260
- /* @__PURE__ */ jsx3(
363
+ /* @__PURE__ */ jsx4(
261
364
  "input",
262
365
  {
263
366
  id: "onboarding-username",
@@ -281,16 +384,16 @@ var ProfileSetupStep = ({ onContinue }) => {
281
384
  )
282
385
  ] })
283
386
  ] }),
284
- /* @__PURE__ */ jsx3(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
387
+ /* @__PURE__ */ jsx4(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
285
388
  ] });
286
389
  };
287
390
  ProfileSetupStep.displayName = "ProfileSetupStep";
288
391
 
289
392
  // src/onboarding/steps/connect-accounts.tsx
290
- import { useLabels as useLabels4 } from "@agg-build/hooks";
291
- import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
393
+ import { useLabels as useLabels5 } from "@agg-build/hooks";
394
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
292
395
  var OnchainVenueLogos = () => {
293
- return /* @__PURE__ */ jsx4("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ jsx4("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ jsx4(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
396
+ return /* @__PURE__ */ jsx5("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ jsx5("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ jsx5(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
294
397
  };
295
398
  var VenueCard = ({
296
399
  logos,
@@ -301,8 +404,8 @@ var VenueCard = ({
301
404
  onConnect,
302
405
  connected = false
303
406
  }) => {
304
- const labels = useLabels4();
305
- const action = connected ? /* @__PURE__ */ jsx4(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ jsx4(
407
+ const labels = useLabels5();
408
+ const action = connected ? /* @__PURE__ */ jsx5(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ jsx5(
306
409
  Button,
307
410
  {
308
411
  variant: "tertiary",
@@ -312,18 +415,18 @@ var VenueCard = ({
312
415
  children: labels.onboarding.connectAccounts.connect
313
416
  }
314
417
  );
315
- const mobileAction = connected ? /* @__PURE__ */ jsx4(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ jsx4(
418
+ const mobileAction = connected ? /* @__PURE__ */ jsx5(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ jsx5(
316
419
  Button,
317
420
  {
318
421
  variant: "tertiary",
319
422
  size: "medium",
320
423
  className: "!h-auto !px-0 !py-0 text-agg-primary hover:bg-transparent hover:text-agg-primary-hover",
321
424
  onClick: onConnect,
322
- suffix: /* @__PURE__ */ jsx4(ChevronRightIcon, { className: "h-4 w-4" }),
425
+ suffix: /* @__PURE__ */ jsx5(ChevronRightIcon, { className: "h-4 w-4" }),
323
426
  children: labels.onboarding.connectAccounts.connectAccount
324
427
  }
325
428
  );
326
- return /* @__PURE__ */ jsxs4(
429
+ return /* @__PURE__ */ jsxs5(
327
430
  "div",
328
431
  {
329
432
  className: cn(
@@ -331,23 +434,23 @@ var VenueCard = ({
331
434
  connected ? "bg-agg-success/5" : "bg-agg-secondary-hover hover:bg-agg-tertiary"
332
435
  ),
333
436
  children: [
334
- /* @__PURE__ */ jsxs4("div", { className: "hidden sm:flex items-center justify-between", children: [
335
- /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-5", children: [
336
- /* @__PURE__ */ jsx4("div", { className: "shrink-0", children: logos }),
337
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-[2px]", children: [
338
- /* @__PURE__ */ jsx4("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
339
- /* @__PURE__ */ jsx4("p", { className: "text-agg-sm text-agg-foreground", children: description })
437
+ /* @__PURE__ */ jsxs5("div", { className: "hidden sm:flex items-center justify-between", children: [
438
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-5", children: [
439
+ /* @__PURE__ */ jsx5("div", { className: "shrink-0", children: logos }),
440
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-[2px]", children: [
441
+ /* @__PURE__ */ jsx5("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
442
+ /* @__PURE__ */ jsx5("p", { className: "text-agg-sm text-agg-foreground", children: description })
340
443
  ] })
341
444
  ] }),
342
- /* @__PURE__ */ jsx4("div", { className: "shrink-0", children: action })
445
+ /* @__PURE__ */ jsx5("div", { className: "shrink-0", children: action })
343
446
  ] }),
344
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-3 sm:hidden", children: [
345
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-3", children: [
346
- /* @__PURE__ */ jsx4("div", { className: "shrink-0", children: logos }),
347
- /* @__PURE__ */ jsx4("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
447
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-3 sm:hidden", children: [
448
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-3", children: [
449
+ /* @__PURE__ */ jsx5("div", { className: "shrink-0", children: logos }),
450
+ /* @__PURE__ */ jsx5("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
348
451
  ] }),
349
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-start gap-2", children: [
350
- /* @__PURE__ */ jsx4("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
452
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col items-start gap-2", children: [
453
+ /* @__PURE__ */ jsx5("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
351
454
  mobileAction
352
455
  ] })
353
456
  ] })
@@ -360,14 +463,14 @@ var ConnectAccountsStep = ({
360
463
  onContinue,
361
464
  connectedOnchain = false
362
465
  }) => {
363
- const labels = useLabels4();
466
+ const labels = useLabels5();
364
467
  const canContinue = connectedOnchain;
365
- return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-6", children: [
366
- /* @__PURE__ */ jsx4("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
367
- /* @__PURE__ */ jsx4("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx4(
468
+ return /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-6", children: [
469
+ /* @__PURE__ */ jsx5("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
470
+ /* @__PURE__ */ jsx5("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx5(
368
471
  VenueCard,
369
472
  {
370
- logos: /* @__PURE__ */ jsx4(OnchainVenueLogos, {}),
473
+ logos: /* @__PURE__ */ jsx5(OnchainVenueLogos, {}),
371
474
  title: labels.onboarding.connectAccounts.onchainTitle,
372
475
  mobileTitle: labels.onboarding.connectAccounts.onchainMobileTitle(
373
476
  ONCHAIN_VENUES.length - 1
@@ -378,7 +481,7 @@ var ConnectAccountsStep = ({
378
481
  connected: connectedOnchain
379
482
  }
380
483
  ) }),
381
- /* @__PURE__ */ jsx4(
484
+ /* @__PURE__ */ jsx5(
382
485
  Button,
383
486
  {
384
487
  variant: "primary",
@@ -395,15 +498,15 @@ ConnectAccountsStep.displayName = "ConnectAccountsStep";
395
498
 
396
499
  // src/onboarding/steps/connect-onchain-modal.tsx
397
500
  import { useCallback as useCallback3, useState as useState3 } from "react";
398
- import { useLabels as useLabels5 } from "@agg-build/hooks";
399
- import * as Dialog from "@radix-ui/react-dialog";
400
- import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
501
+ import { useLabels as useLabels6 } from "@agg-build/hooks";
502
+ import * as Dialog2 from "@radix-ui/react-dialog";
503
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
401
504
  var ConnectOnchainModal = ({
402
505
  open,
403
506
  onOpenChange,
404
507
  onConnect
405
508
  }) => {
406
- const labels = useLabels5();
509
+ const labels = useLabels6();
407
510
  const [connecting, setConnecting] = useState3(false);
408
511
  const [error, setError] = useState3();
409
512
  const handleCancel = useCallback3(() => {
@@ -434,15 +537,15 @@ var ConnectOnchainModal = ({
434
537
  },
435
538
  [onOpenChange]
436
539
  );
437
- return /* @__PURE__ */ jsx5(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs5(
540
+ return /* @__PURE__ */ jsx6(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs6(
438
541
  Modal.Container,
439
542
  {
440
543
  maxWidth: "600px",
441
544
  "aria-label": labels.onboarding.connectOnchainModal.ariaLabel,
442
545
  classNames: { container: "!rounded-agg-lg" },
443
546
  children: [
444
- /* @__PURE__ */ jsx5(Dialog.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
445
- /* @__PURE__ */ jsx5(
547
+ /* @__PURE__ */ jsx6(Dialog2.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
548
+ /* @__PURE__ */ jsx6(
446
549
  Modal.Header,
447
550
  {
448
551
  hideClose: false,
@@ -453,26 +556,26 @@ var ConnectOnchainModal = ({
453
556
  }
454
557
  }
455
558
  ),
456
- /* @__PURE__ */ jsx5(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-8 items-center", children: [
457
- /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-4 items-center text-center", children: [
458
- /* @__PURE__ */ jsx5("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
459
- /* @__PURE__ */ jsx5("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
559
+ /* @__PURE__ */ jsx6(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-8 items-center", children: [
560
+ /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-4 items-center text-center", children: [
561
+ /* @__PURE__ */ jsx6("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
562
+ /* @__PURE__ */ jsx6("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
460
563
  ] }),
461
- /* @__PURE__ */ jsxs5("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
462
- /* @__PURE__ */ jsx5("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
463
- /* @__PURE__ */ jsx5("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-3", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-[6px]", children: [
464
- index > 0 && /* @__PURE__ */ jsx5("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
465
- /* @__PURE__ */ jsx5(VenueLogo, { venue, size: "medium" }),
466
- /* @__PURE__ */ jsx5("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
564
+ /* @__PURE__ */ jsxs6("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
565
+ /* @__PURE__ */ jsx6("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
566
+ /* @__PURE__ */ jsx6("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-3", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-[6px]", children: [
567
+ index > 0 && /* @__PURE__ */ jsx6("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
568
+ /* @__PURE__ */ jsx6(VenueLogo, { venue, size: "medium" }),
569
+ /* @__PURE__ */ jsx6("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
467
570
  ] }, venue)) })
468
571
  ] }),
469
- /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-6 items-center", children: [
470
- /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-3 items-center", children: [
471
- error ? /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2", children: [
472
- /* @__PURE__ */ jsx5(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
473
- /* @__PURE__ */ jsx5("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
572
+ /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-6 items-center", children: [
573
+ /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-3 items-center", children: [
574
+ error ? /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
575
+ /* @__PURE__ */ jsx6(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
576
+ /* @__PURE__ */ jsx6("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
474
577
  ] }) : null,
475
- /* @__PURE__ */ jsx5(
578
+ /* @__PURE__ */ jsx6(
476
579
  Button,
477
580
  {
478
581
  variant: "primary",
@@ -483,7 +586,7 @@ var ConnectOnchainModal = ({
483
586
  }
484
587
  )
485
588
  ] }),
486
- /* @__PURE__ */ jsx5(
589
+ /* @__PURE__ */ jsx6(
487
590
  Button,
488
591
  {
489
592
  variant: "tertiary",
@@ -502,12 +605,12 @@ var ConnectOnchainModal = ({
502
605
  ConnectOnchainModal.displayName = "ConnectOnchainModal";
503
606
 
504
607
  // src/onboarding/steps/connect-kalshi-modal.tsx
505
- import { getVenueAvailabilityState, useAppConfig, useLabels as useLabels6 } from "@agg-build/hooks";
608
+ import { getVenueAvailabilityState, useAppConfig, useLabels as useLabels7 } from "@agg-build/hooks";
506
609
  import { Venue as Venue2 } from "@agg-build/sdk";
507
- import * as Dialog2 from "@radix-ui/react-dialog";
610
+ import * as Dialog3 from "@radix-ui/react-dialog";
508
611
  import { useCallback as useCallback4, useEffect, useId, useMemo, useRef as useRef3, useState as useState4 } from "react";
509
612
  import { z } from "zod";
510
- import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
613
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
511
614
  var kalshiCredentialsSchema = z.object({
512
615
  apiKeyId: z.string().trim().min(1),
513
616
  privateKey: z.string().trim().min(1)
@@ -529,7 +632,7 @@ var ConnectKalshiModal = ({
529
632
  onOpenChange,
530
633
  onVerify
531
634
  }) => {
532
- const labels = useLabels6();
635
+ const labels = useLabels7();
533
636
  const { disabledVenues, isLoading: isAppConfigLoading } = useAppConfig();
534
637
  const apiKeyInputRef = useRef3(null);
535
638
  const errorId = useId();
@@ -602,30 +705,30 @@ var ConnectKalshiModal = ({
602
705
  [handleVerify]
603
706
  );
604
707
  if (availabilityState === "hidden") return null;
605
- return /* @__PURE__ */ jsx6(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs6(
708
+ return /* @__PURE__ */ jsx7(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs7(
606
709
  Modal.Container,
607
710
  {
608
711
  maxWidth: "600px",
609
712
  "aria-label": labels.onboarding.connectKalshiModal.ariaLabel,
610
713
  classNames: { container: "!rounded-agg-2xl" },
611
714
  children: [
612
- /* @__PURE__ */ jsx6("div", { className: "flex h-[60px] shrink-0 items-center justify-end px-8", children: /* @__PURE__ */ jsx6(
613
- Dialog2.Close,
715
+ /* @__PURE__ */ jsx7("div", { className: "flex h-[60px] shrink-0 items-center justify-end px-8", children: /* @__PURE__ */ jsx7(
716
+ Dialog3.Close,
614
717
  {
615
718
  "aria-label": labels.common.close,
616
719
  className: "flex size-10 cursor-pointer items-center justify-center rounded-agg-full text-agg-secondary transition-colors hover:bg-agg-quaternary hover:text-agg-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-accent disabled:cursor-default disabled:opacity-50",
617
720
  disabled: isVerifying,
618
- children: /* @__PURE__ */ jsx6(Icon, { name: "close", size: "medium" })
721
+ children: /* @__PURE__ */ jsx7(Icon, { name: "close", size: "medium" })
619
722
  }
620
723
  ) }),
621
- /* @__PURE__ */ jsx6(Modal.Body, { classNames: { root: "!px-5 !pb-12 !pt-0 sm:!px-10" }, children: isConnected ? /* @__PURE__ */ jsxs6(
724
+ /* @__PURE__ */ jsx7(Modal.Body, { classNames: { root: "!px-5 !pb-12 !pt-0 sm:!px-10" }, children: isConnected ? /* @__PURE__ */ jsxs7(
622
725
  "div",
623
726
  {
624
727
  className: "flex flex-col items-center gap-8 pb-3 text-center",
625
728
  role: "status",
626
729
  "aria-live": "polite",
627
730
  children: [
628
- /* @__PURE__ */ jsx6("div", { className: "flex size-[60px] items-center justify-center rounded-agg-full bg-agg-success", children: /* @__PURE__ */ jsx6(
731
+ /* @__PURE__ */ jsx7("div", { className: "flex size-[60px] items-center justify-center rounded-agg-full bg-agg-success", children: /* @__PURE__ */ jsx7(
629
732
  Icon,
630
733
  {
631
734
  name: "success-check",
@@ -633,11 +736,11 @@ var ConnectKalshiModal = ({
633
736
  "aria-hidden": "true"
634
737
  }
635
738
  ) }),
636
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-4", children: [
637
- /* @__PURE__ */ jsx6(Dialog2.Title, { className: "text-agg-2xl font-agg-bold leading-agg-8 text-agg-foreground", children: labels.onboarding.connectKalshiModal.success.title }),
638
- /* @__PURE__ */ jsx6(Dialog2.Description, { className: "max-w-[480px] text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.success.description })
739
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center gap-4", children: [
740
+ /* @__PURE__ */ jsx7(Dialog3.Title, { className: "text-agg-2xl font-agg-bold leading-agg-8 text-agg-foreground", children: labels.onboarding.connectKalshiModal.success.title }),
741
+ /* @__PURE__ */ jsx7(Dialog3.Description, { className: "max-w-[480px] text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.success.description })
639
742
  ] }),
640
- /* @__PURE__ */ jsx6(
743
+ /* @__PURE__ */ jsx7(
641
744
  Button,
642
745
  {
643
746
  variant: "primary",
@@ -649,27 +752,27 @@ var ConnectKalshiModal = ({
649
752
  )
650
753
  ]
651
754
  }
652
- ) : /* @__PURE__ */ jsxs6("form", { className: "flex flex-col items-center gap-8", onSubmit: handleSubmit, children: [
653
- /* @__PURE__ */ jsx6(VenueLogo, { venue: Venue2.kalshi, variant: "logo", size: "large", className: "size-[60px]" }),
654
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-4 text-center", children: [
655
- /* @__PURE__ */ jsx6(Dialog2.Title, { className: "text-agg-2xl font-agg-bold leading-agg-8 text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
656
- /* @__PURE__ */ jsx6(Dialog2.Description, { className: "max-w-[520px] text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
755
+ ) : /* @__PURE__ */ jsxs7("form", { className: "flex flex-col items-center gap-8", onSubmit: handleSubmit, children: [
756
+ /* @__PURE__ */ jsx7(VenueLogo, { venue: Venue2.kalshi, variant: "logo", size: "large", className: "size-[60px]" }),
757
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center gap-4 text-center", children: [
758
+ /* @__PURE__ */ jsx7(Dialog3.Title, { className: "text-agg-2xl font-agg-bold leading-agg-8 text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
759
+ /* @__PURE__ */ jsx7(Dialog3.Description, { className: "max-w-[520px] text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
657
760
  ] }),
658
- /* @__PURE__ */ jsxs6("div", { className: "flex w-full flex-col gap-4", children: [
659
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-3 rounded-agg-xl bg-agg-secondary-hover p-4", children: [
660
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
661
- /* @__PURE__ */ jsx6("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
662
- /* @__PURE__ */ jsx6("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
761
+ /* @__PURE__ */ jsxs7("div", { className: "flex w-full flex-col gap-4", children: [
762
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-3 rounded-agg-xl bg-agg-secondary-hover p-4", children: [
763
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
764
+ /* @__PURE__ */ jsx7("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
765
+ /* @__PURE__ */ jsx7("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
663
766
  ] }),
664
- /* @__PURE__ */ jsxs6("div", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
665
- /* @__PURE__ */ jsx6("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
666
- /* @__PURE__ */ jsxs6("p", { children: [
767
+ /* @__PURE__ */ jsxs7("div", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
768
+ /* @__PURE__ */ jsx7("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
769
+ /* @__PURE__ */ jsxs7("p", { children: [
667
770
  labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfilePrefix,
668
771
  " ",
669
- /* @__PURE__ */ jsx6("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
772
+ /* @__PURE__ */ jsx7("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
670
773
  labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfileSeparator,
671
774
  " ",
672
- /* @__PURE__ */ jsx6(
775
+ /* @__PURE__ */ jsx7(
673
776
  "a",
674
777
  {
675
778
  href: labels.onboarding.connectKalshiModal.stepOne.instructions.profileUrl,
@@ -680,34 +783,34 @@ var ConnectKalshiModal = ({
680
783
  }
681
784
  )
682
785
  ] }),
683
- /* @__PURE__ */ jsxs6("p", { children: [
786
+ /* @__PURE__ */ jsxs7("p", { children: [
684
787
  labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeyPrefix,
685
788
  " ",
686
- /* @__PURE__ */ jsx6("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
789
+ /* @__PURE__ */ jsx7("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
687
790
  labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeySuffix
688
791
  ] }),
689
- /* @__PURE__ */ jsxs6("p", { children: [
792
+ /* @__PURE__ */ jsxs7("p", { children: [
690
793
  labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsPrefix,
691
794
  " ",
692
- /* @__PURE__ */ jsx6("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
795
+ /* @__PURE__ */ jsx7("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
693
796
  labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsSuffix
694
797
  ] }),
695
- /* @__PURE__ */ jsx6("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
798
+ /* @__PURE__ */ jsx7("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
696
799
  ] }),
697
- /* @__PURE__ */ jsxs6("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
800
+ /* @__PURE__ */ jsxs7("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
698
801
  labels.onboarding.connectKalshiModal.stepOne.footerLineOne,
699
- /* @__PURE__ */ jsx6("br", {}),
802
+ /* @__PURE__ */ jsx7("br", {}),
700
803
  labels.onboarding.connectKalshiModal.stepOne.footerLineTwo
701
804
  ] })
702
805
  ] }),
703
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-3 rounded-agg-xl bg-agg-secondary-hover p-4", children: [
704
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
705
- /* @__PURE__ */ jsx6("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
706
- /* @__PURE__ */ jsx6("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
806
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-3 rounded-agg-xl bg-agg-secondary-hover p-4", children: [
807
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1", children: [
808
+ /* @__PURE__ */ jsx7("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
809
+ /* @__PURE__ */ jsx7("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
707
810
  ] }),
708
- /* @__PURE__ */ jsx6("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
709
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
710
- /* @__PURE__ */ jsx6(
811
+ /* @__PURE__ */ jsx7("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
812
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
813
+ /* @__PURE__ */ jsx7(
711
814
  "label",
712
815
  {
713
816
  htmlFor: "kalshi-api-key-id",
@@ -715,7 +818,7 @@ var ConnectKalshiModal = ({
715
818
  children: labels.onboarding.connectKalshiModal.stepTwo.apiKeyIdLabel
716
819
  }
717
820
  ),
718
- /* @__PURE__ */ jsx6(
821
+ /* @__PURE__ */ jsx7(
719
822
  "input",
720
823
  {
721
824
  ref: apiKeyInputRef,
@@ -737,8 +840,8 @@ var ConnectKalshiModal = ({
737
840
  }
738
841
  )
739
842
  ] }),
740
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
741
- /* @__PURE__ */ jsx6(
843
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-2", children: [
844
+ /* @__PURE__ */ jsx7(
742
845
  "label",
743
846
  {
744
847
  htmlFor: "kalshi-private-key",
@@ -746,7 +849,7 @@ var ConnectKalshiModal = ({
746
849
  children: labels.onboarding.connectKalshiModal.stepTwo.privateKeyLabel
747
850
  }
748
851
  ),
749
- /* @__PURE__ */ jsx6(
852
+ /* @__PURE__ */ jsx7(
750
853
  "textarea",
751
854
  {
752
855
  id: "kalshi-private-key",
@@ -769,22 +872,22 @@ var ConnectKalshiModal = ({
769
872
  ] })
770
873
  ] })
771
874
  ] }),
772
- /* @__PURE__ */ jsxs6("div", { className: "flex w-full items-center justify-between gap-4", children: [
773
- /* @__PURE__ */ jsx6("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
774
- /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-3", children: [
775
- /* @__PURE__ */ jsxs6("span", { className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary", children: [
776
- /* @__PURE__ */ jsx6(Icon, { name: "document", size: "small", className: "size-4 text-agg-primary" }),
875
+ /* @__PURE__ */ jsxs7("div", { className: "flex w-full items-center justify-between gap-4", children: [
876
+ /* @__PURE__ */ jsx7("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
877
+ /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-3", children: [
878
+ /* @__PURE__ */ jsxs7("span", { className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary", children: [
879
+ /* @__PURE__ */ jsx7(Icon, { name: "document", size: "small", className: "size-4 text-agg-primary" }),
777
880
  labels.onboarding.connectKalshiModal.help.docsLinkLabel
778
881
  ] }),
779
- /* @__PURE__ */ jsx6("span", { className: "h-3 w-px bg-agg-separator" }),
780
- /* @__PURE__ */ jsxs6("span", { className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary", children: [
781
- /* @__PURE__ */ jsx6(Icon, { name: "play-square", size: "small", className: "size-4 text-agg-primary" }),
882
+ /* @__PURE__ */ jsx7("span", { className: "h-3 w-px bg-agg-separator" }),
883
+ /* @__PURE__ */ jsxs7("span", { className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary", children: [
884
+ /* @__PURE__ */ jsx7(Icon, { name: "play-square", size: "small", className: "size-4 text-agg-primary" }),
782
885
  labels.onboarding.connectKalshiModal.help.tutorialLinkLabel
783
886
  ] })
784
887
  ] })
785
888
  ] }),
786
- /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center gap-5", children: [
787
- error ? /* @__PURE__ */ jsxs6(
889
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center gap-5", children: [
890
+ error ? /* @__PURE__ */ jsxs7(
788
891
  "div",
789
892
  {
790
893
  id: errorId,
@@ -792,13 +895,13 @@ var ConnectKalshiModal = ({
792
895
  role: "alert",
793
896
  "aria-live": "assertive",
794
897
  children: [
795
- /* @__PURE__ */ jsx6(Icon, { name: "warning", size: "small", className: "size-3.5 text-agg-error" }),
796
- /* @__PURE__ */ jsx6("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
898
+ /* @__PURE__ */ jsx7(Icon, { name: "warning", size: "small", className: "size-3.5 text-agg-error" }),
899
+ /* @__PURE__ */ jsx7("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
797
900
  ]
798
901
  }
799
902
  ) : null,
800
- /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-center gap-3", children: [
801
- /* @__PURE__ */ jsx6(
903
+ /* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-center gap-3", children: [
904
+ /* @__PURE__ */ jsx7(
802
905
  Button,
803
906
  {
804
907
  variant: "secondary",
@@ -808,7 +911,7 @@ var ConnectKalshiModal = ({
808
911
  children: labels.onboarding.connectKalshiModal.actions.cancel
809
912
  }
810
913
  ),
811
- /* @__PURE__ */ jsx6(
914
+ /* @__PURE__ */ jsx7(
812
915
  Button,
813
916
  {
814
917
  type: "submit",
@@ -830,9 +933,9 @@ ConnectKalshiModal.displayName = "ConnectKalshiModal";
830
933
 
831
934
  // src/onboarding/index.tsx
832
935
  import { useCallback as useCallback5, useEffect as useEffect2, useState as useState5 } from "react";
833
- import { useLabels as useLabels7 } from "@agg-build/hooks";
834
- import * as Dialog3 from "@radix-ui/react-dialog";
835
- import { Fragment, jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
936
+ import { useLabels as useLabels8 } from "@agg-build/hooks";
937
+ import * as Dialog4 from "@radix-ui/react-dialog";
938
+ import { Fragment, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
836
939
  var OnboardingModal = ({
837
940
  open,
838
941
  onOpenChange,
@@ -843,7 +946,7 @@ var OnboardingModal = ({
843
946
  connectedOnchain = false
844
947
  }) => {
845
948
  var _a;
846
- const labels = useLabels7();
949
+ const labels = useLabels8();
847
950
  const [step, setStep] = useState5(ONBOARDING_STEPS.HOW_IT_WORKS);
848
951
  const stepLabels = {
849
952
  [ONBOARDING_STEPS.HOW_IT_WORKS]: labels.onboarding.modal.stepHowItWorks,
@@ -879,19 +982,19 @@ var OnboardingModal = ({
879
982
  yield onConnectOnchain == null ? void 0 : onConnectOnchain();
880
983
  setOnchainConnected(true);
881
984
  }), [onConnectOnchain]);
882
- return /* @__PURE__ */ jsxs7(Fragment, { children: [
883
- /* @__PURE__ */ jsx7(Modal, { open, onOpenChange, children: /* @__PURE__ */ jsxs7(
985
+ return /* @__PURE__ */ jsxs8(Fragment, { children: [
986
+ /* @__PURE__ */ jsx8(Modal, { open, onOpenChange, children: /* @__PURE__ */ jsxs8(
884
987
  Modal.Container,
885
988
  {
886
989
  maxWidth: "600px",
887
990
  "aria-label": resolvedTitle,
888
991
  classNames: { container: "!rounded-agg-lg" },
889
992
  children: [
890
- /* @__PURE__ */ jsx7(Dialog3.Title, { className: "sr-only", children: resolvedTitle }),
891
- /* @__PURE__ */ jsxs7(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
892
- step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ jsx7(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
893
- step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ jsx7(ProfileSetupStep, { onContinue: handleProfileContinue }),
894
- step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ jsx7(
993
+ /* @__PURE__ */ jsx8(Dialog4.Title, { className: "sr-only", children: resolvedTitle }),
994
+ /* @__PURE__ */ jsxs8(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
995
+ step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ jsx8(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
996
+ step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ jsx8(ProfileSetupStep, { onContinue: handleProfileContinue }),
997
+ step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ jsx8(
895
998
  ConnectAccountsStep,
896
999
  {
897
1000
  onConnectOnchain: handleOpenOnchainModal,
@@ -903,7 +1006,7 @@ var OnboardingModal = ({
903
1006
  ]
904
1007
  }
905
1008
  ) }),
906
- /* @__PURE__ */ jsx7(
1009
+ /* @__PURE__ */ jsx8(
907
1010
  ConnectOnchainModal,
908
1011
  {
909
1012
  open: onchainModalOpen,
@@ -938,6 +1041,7 @@ export {
938
1041
  dispatchAggDepositNotification,
939
1042
  subscribeAggDepositNotification,
940
1043
  GeoBlockBanner,
1044
+ SharedKycModal,
941
1045
  HowItWorksStep,
942
1046
  ProfileSetupStep,
943
1047
  ConnectAccountsStep,