@agg-market/ui 0.0.1 → 0.0.4

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 (174) hide show
  1. package/dist/badge.d.mts +2 -2
  2. package/dist/badge.d.ts +2 -2
  3. package/dist/badge.mjs +2 -2
  4. package/dist/button.d.mts +2 -2
  5. package/dist/button.d.ts +2 -2
  6. package/dist/button.js +1 -0
  7. package/dist/button.mjs +3 -3
  8. package/dist/card.mjs +2 -2
  9. package/dist/chart.mjs +3 -3
  10. package/dist/{chunk-YUIZZ6XE.mjs → chunk-3O4U3E5I.mjs} +1 -1
  11. package/dist/{chunk-JLLMIPIX.mjs → chunk-4VUDTWH7.mjs} +1 -1
  12. package/dist/{chunk-MG243DSX.mjs → chunk-AEMAY3MR.mjs} +1 -1
  13. package/dist/{chunk-765JPQDG.mjs → chunk-BJNHDIDW.mjs} +4 -4
  14. package/dist/{chunk-LY6474C4.mjs → chunk-BLSHXIAH.mjs} +36 -71
  15. package/dist/{chunk-DQ6XFBYJ.mjs → chunk-DYEWXEEY.mjs} +1 -1
  16. package/dist/{chunk-OUOIDPGX.mjs → chunk-EXF4SESB.mjs} +1 -1
  17. package/dist/chunk-F236MLT6.mjs +1337 -0
  18. package/dist/{chunk-PAQ542ER.mjs → chunk-GHB3GOCW.mjs} +4 -2
  19. package/dist/{chunk-GC3QIIH7.mjs → chunk-GJ4U5NCE.mjs} +23 -1
  20. package/dist/chunk-HM3CGN32.mjs +669 -0
  21. package/dist/chunk-I4YUYVJJ.mjs +472 -0
  22. package/dist/{chunk-NFYS557L.mjs → chunk-JH5VMNDL.mjs} +3 -3
  23. package/dist/{chunk-TTOR7JCT.mjs → chunk-JRS2M5GY.mjs} +1 -1
  24. package/dist/{chunk-QXFDXXDB.mjs → chunk-LWTQD345.mjs} +3 -3
  25. package/dist/{chunk-QE46DVJG.mjs → chunk-MNSHWA6M.mjs} +3 -3
  26. package/dist/{chunk-H7P6DIX4.mjs → chunk-MXBPDNMC.mjs} +7 -7
  27. package/dist/{chunk-VYNVBJK6.mjs → chunk-NDG43KGL.mjs} +1 -1
  28. package/dist/chunk-O2XH4A3G.mjs +654 -0
  29. package/dist/{chunk-KDBYDMYV.mjs → chunk-OBCHURW5.mjs} +1 -1
  30. package/dist/{chunk-FZTAHWOS.mjs → chunk-OGI343OV.mjs} +2 -2
  31. package/dist/{chunk-HJOBAMDU.mjs → chunk-P23GR7NX.mjs} +2 -2
  32. package/dist/{chunk-J6L5BLKX.mjs → chunk-PGSPYQOW.mjs} +2 -2
  33. package/dist/{chunk-J7OETCZ7.mjs → chunk-QFQHD2V6.mjs} +19 -20
  34. package/dist/chunk-RGZQHSNJ.mjs +845 -0
  35. package/dist/{chunk-7XRKA6XF.mjs → chunk-RXACBTON.mjs} +5 -5
  36. package/dist/{chunk-2PGUPOXY.mjs → chunk-USLTNDJA.mjs} +15 -11
  37. package/dist/{chunk-FACIYUNK.mjs → chunk-VC7LTPQD.mjs} +2 -2
  38. package/dist/{chunk-CKTAVEW2.mjs → chunk-VIP7HSOU.mjs} +2 -2
  39. package/dist/{chunk-5MN6ZNFA.mjs → chunk-VUDJ3PYM.mjs} +9 -9
  40. package/dist/{chunk-MRHSN2B7.mjs → chunk-W2DMBW4E.mjs} +13 -9
  41. package/dist/{chunk-7CD7GIZC.mjs → chunk-XELWY7SO.mjs} +157 -50
  42. package/dist/chunk-ZDF7QP4G.mjs +160 -0
  43. package/dist/{chunk-4NK2FNAG.mjs → chunk-ZHKMDK5M.mjs} +244 -112
  44. package/dist/{chunk-C4OI72SM.mjs → chunk-ZVBVGWSP.mjs} +1 -0
  45. package/dist/chunk-ZYREURXK.mjs +470 -0
  46. package/dist/connect-button.js +767 -292
  47. package/dist/connect-button.mjs +8 -8
  48. package/dist/deposit-modal.d.mts +34 -0
  49. package/dist/deposit-modal.d.ts +34 -0
  50. package/dist/deposit-modal.js +2787 -0
  51. package/dist/deposit-modal.mjs +15 -0
  52. package/dist/event-list-item-details.js +271 -173
  53. package/dist/event-list-item-details.mjs +13 -13
  54. package/dist/event-list-item.js +903 -426
  55. package/dist/event-list-item.mjs +11 -11
  56. package/dist/event-list.js +1104 -517
  57. package/dist/event-list.mjs +14 -14
  58. package/dist/event-market-page.d.mts +1 -1
  59. package/dist/event-market-page.d.ts +1 -1
  60. package/dist/event-market-page.js +1513 -685
  61. package/dist/event-market-page.mjs +23 -23
  62. package/dist/hello-world.mjs +3 -3
  63. package/dist/home-page.d.mts +1 -1
  64. package/dist/home-page.d.ts +1 -1
  65. package/dist/home-page.js +1120 -533
  66. package/dist/home-page.mjs +15 -15
  67. package/dist/icon.d.mts +74 -4
  68. package/dist/icon.d.ts +74 -4
  69. package/dist/icon.js +668 -123
  70. package/dist/icon.mjs +32 -4
  71. package/dist/index.d.mts +16 -8
  72. package/dist/index.d.ts +16 -8
  73. package/dist/index.js +5309 -2151
  74. package/dist/index.mjs +80 -32
  75. package/dist/loading-icon.d.mts +1 -1
  76. package/dist/loading-icon.d.ts +1 -1
  77. package/dist/loading-icon.js +1 -0
  78. package/dist/loading-icon.mjs +3 -3
  79. package/dist/market-details.d.mts +2 -2
  80. package/dist/market-details.d.ts +2 -2
  81. package/dist/market-details.js +1097 -411
  82. package/dist/market-details.mjs +16 -16
  83. package/dist/modal.mjs +3 -3
  84. package/dist/number-value.mjs +2 -2
  85. package/dist/onboarding-modal.js +1249 -672
  86. package/dist/onboarding-modal.mjs +8 -8
  87. package/dist/place-order.d.mts +1 -1
  88. package/dist/place-order.d.ts +1 -1
  89. package/dist/place-order.js +1091 -506
  90. package/dist/place-order.mjs +12 -12
  91. package/dist/profile-modal.d.mts +66 -0
  92. package/dist/profile-modal.d.ts +66 -0
  93. package/dist/profile-modal.js +2429 -0
  94. package/dist/profile-modal.mjs +14 -0
  95. package/dist/{registry-CVn79H3I.d.mts → registry-DfSCFAdC.d.mts} +72 -0
  96. package/dist/{registry-CVn79H3I.d.ts → registry-DfSCFAdC.d.ts} +72 -0
  97. package/dist/search.d.mts +5 -23
  98. package/dist/search.d.ts +5 -23
  99. package/dist/search.js +740 -265
  100. package/dist/search.mjs +6 -6
  101. package/dist/select.d.mts +2 -0
  102. package/dist/select.d.ts +2 -0
  103. package/dist/select.js +814 -187
  104. package/dist/select.mjs +5 -5
  105. package/dist/settlement.d.mts +1 -1
  106. package/dist/settlement.d.ts +1 -1
  107. package/dist/settlement.js +891 -417
  108. package/dist/settlement.mjs +9 -9
  109. package/dist/skeleton.js +1 -1
  110. package/dist/skeleton.mjs +3 -3
  111. package/dist/styles.css +1 -1
  112. package/dist/switch-button.mjs +2 -2
  113. package/dist/tabs.js +854 -227
  114. package/dist/tabs.mjs +6 -6
  115. package/dist/tailwind.css +1 -1
  116. package/dist/types-Bed6Q0EK.d.mts +3 -0
  117. package/dist/types-Bed6Q0EK.d.ts +3 -0
  118. package/dist/{types-8VUuQVZq.d.mts → types-DkGlbmXq.d.mts} +24 -24
  119. package/dist/{types-8VUuQVZq.d.ts → types-DkGlbmXq.d.ts} +24 -24
  120. package/dist/typography.mjs +2 -2
  121. package/dist/user-profile-page.d.mts +133 -0
  122. package/dist/user-profile-page.d.ts +133 -0
  123. package/dist/user-profile-page.js +3335 -0
  124. package/dist/user-profile-page.mjs +15 -0
  125. package/dist/venue-logo.d.mts +2 -2
  126. package/dist/venue-logo.d.ts +2 -2
  127. package/dist/venue-logo.js +28 -70
  128. package/dist/venue-logo.mjs +2 -2
  129. package/dist/{venue-logo.types-Bg8eXtGp.d.ts → venue-logo.types-BSAuY84j.d.ts} +1 -1
  130. package/dist/{venue-logo.types-B1iPJgiD.d.mts → venue-logo.types-DACqcTvY.d.mts} +1 -1
  131. package/dist/withdraw-modal.d.mts +36 -0
  132. package/dist/withdraw-modal.d.ts +36 -0
  133. package/dist/withdraw-modal.js +2442 -0
  134. package/dist/withdraw-modal.mjs +14 -0
  135. package/package.json +275 -101
  136. package/dist/chunk-3DV3D2LH.mjs +0 -155
  137. package/dist/chunk-44UEI6KD.mjs +0 -280
  138. package/dist/chunk-4ADCXJE6.mjs +0 -297
  139. package/dist/chunk-4GSXVVSA.mjs +0 -64
  140. package/dist/chunk-4XWCYUV3.mjs +0 -355
  141. package/dist/chunk-6RRBINER.mjs +0 -50
  142. package/dist/chunk-AOFP74IB.mjs +0 -850
  143. package/dist/chunk-CB2MLGCJ.mjs +0 -279
  144. package/dist/chunk-DA6KZWSK.mjs +0 -807
  145. package/dist/chunk-DBD5GHHD.mjs +0 -147
  146. package/dist/chunk-FUJQIYOF.mjs +0 -37
  147. package/dist/chunk-GPBLZGJ2.mjs +0 -136
  148. package/dist/chunk-H4LELROL.mjs +0 -262
  149. package/dist/chunk-H7YEBGYY.mjs +0 -42
  150. package/dist/chunk-IJG5I642.mjs +0 -462
  151. package/dist/chunk-IY2AA3OL.mjs +0 -50
  152. package/dist/chunk-KBRLFTJT.mjs +0 -741
  153. package/dist/chunk-L6E6Q4C4.mjs +0 -217
  154. package/dist/chunk-M23S2DVV.mjs +0 -581
  155. package/dist/chunk-MXWRCVRJ.mjs +0 -285
  156. package/dist/chunk-NNSY462N.mjs +0 -212
  157. package/dist/chunk-P5PFQX75.mjs +0 -31
  158. package/dist/chunk-P674XRDY.mjs +0 -481
  159. package/dist/chunk-R3DRVI4J.mjs +0 -741
  160. package/dist/chunk-V5WIYMKS.mjs +0 -25
  161. package/dist/chunk-VAZE267Q.mjs +0 -82
  162. package/dist/chunk-VLIJ7PQK.mjs +0 -792
  163. package/dist/chunk-WIWJ6DIE.mjs +0 -323
  164. package/dist/chunk-XDAEEJYR.mjs +0 -142
  165. package/dist/event-list-item-details.types-CxWr4Qn1.d.ts +0 -53
  166. package/dist/event-list-item-details.types-DRi99PZq.d.mts +0 -53
  167. package/dist/event-list-item.types-B1490EQm.d.mts +0 -46
  168. package/dist/event-list-item.types-B1490EQm.d.ts +0 -46
  169. package/dist/event-list.types-Bpp6Vn-t.d.mts +0 -13
  170. package/dist/event-list.types-Bpp6Vn-t.d.ts +0 -13
  171. package/dist/types-CayJ8tWA.d.mts +0 -3
  172. package/dist/types-CayJ8tWA.d.ts +0 -3
  173. package/dist/venue-logo.types-4hmCg3D3.d.ts +0 -17
  174. package/dist/venue-logo.types-QNDwiQ77.d.mts +0 -17
@@ -1,279 +0,0 @@
1
- import {
2
- formatCountLabel,
3
- getVenueSummary,
4
- normalizeProbability,
5
- resolveEventListItemEvent,
6
- resolveOutcomeTitle,
7
- resolveTileImage,
8
- resolveTileTitle,
9
- resolveVenueLabel,
10
- resolveVisibleOutcomes,
11
- selectPrimaryVenueMarket
12
- } from "./chunk-PAQ542ER.mjs";
13
- import {
14
- Badge
15
- } from "./chunk-MG243DSX.mjs";
16
- import {
17
- Skeleton,
18
- baseCardClassName
19
- } from "./chunk-NFYS557L.mjs";
20
- import {
21
- VenueLogo
22
- } from "./chunk-LY6474C4.mjs";
23
- import {
24
- Icon
25
- } from "./chunk-DA6KZWSK.mjs";
26
- import {
27
- Typography
28
- } from "./chunk-DQ6XFBYJ.mjs";
29
- import {
30
- Card
31
- } from "./chunk-YUIZZ6XE.mjs";
32
- import {
33
- __objRest,
34
- __spreadValues,
35
- cn
36
- } from "./chunk-GC3QIIH7.mjs";
37
-
38
- // src/events/item/index.tsx
39
- import dayjs from "dayjs";
40
- import { useMemo } from "react";
41
- import { useEvent, useLabels, useSdkUiConfig } from "@agg-market/hooks";
42
- import { jsx, jsxs } from "react/jsx-runtime";
43
- var EventListItemLoadingState = ({
44
- classNames,
45
- ariaLabel
46
- }) => {
47
- const labels = useLabels();
48
- return /* @__PURE__ */ jsx(
49
- Skeleton,
50
- {
51
- view: "event-list-item",
52
- className: classNames == null ? void 0 : classNames.root,
53
- ariaLabel: ariaLabel != null ? ariaLabel : labels.eventItem.loading
54
- }
55
- );
56
- };
57
- var EventListItemUnavailableState = ({
58
- classNames,
59
- ariaLabel
60
- }) => {
61
- const labels = useLabels();
62
- return /* @__PURE__ */ jsx(
63
- Card,
64
- {
65
- className: cn(baseCardClassName, classNames == null ? void 0 : classNames.root),
66
- role: "status",
67
- "aria-label": ariaLabel != null ? ariaLabel : labels.eventItem.unavailableAria,
68
- children: /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-1", classNames == null ? void 0 : classNames.header), children: [
69
- /* @__PURE__ */ jsx(Typography, { variant: "title", className: cn("truncate", classNames == null ? void 0 : classNames.title), children: labels.eventItem.unavailableTitle }),
70
- /* @__PURE__ */ jsx(Typography, { variant: "body", className: "text-agg-muted-foreground", children: labels.eventItem.unavailableDescription })
71
- ] })
72
- }
73
- );
74
- };
75
- var EventListItemContent = ({
76
- event,
77
- title,
78
- image,
79
- showVenueLogo = true,
80
- maxOutcomes = 2,
81
- classNames,
82
- venueInfo,
83
- arbitrageByOutcomeId,
84
- onClick,
85
- ariaLabel
86
- }) => {
87
- var _a;
88
- const config = useSdkUiConfig();
89
- const labels = useLabels();
90
- const allVenueMarkets = useMemo(() => {
91
- return event.markets.flatMap((market) => market.venueMarkets);
92
- }, [event.markets]);
93
- const primaryVenueMarket = useMemo(() => {
94
- return selectPrimaryVenueMarket(allVenueMarkets);
95
- }, [allVenueMarkets]);
96
- const visibleOutcomes = useMemo(() => {
97
- if (allVenueMarkets.length === 0)
98
- return [];
99
- return resolveVisibleOutcomes(allVenueMarkets, maxOutcomes);
100
- }, [allVenueMarkets, maxOutcomes]);
101
- const resolvedTitle = resolveTileTitle(event, primaryVenueMarket, title);
102
- const resolvedImage = resolveTileImage(event, primaryVenueMarket, image);
103
- const { marketCount, venueCount, singleVenue } = getVenueSummary(allVenueMarkets);
104
- const venueLabel = resolveVenueLabel(singleVenue, venueInfo, labels);
105
- const visibleVenueLogos = useMemo(() => {
106
- return Array.from(new Set(allVenueMarkets.map((market) => market.venue))).slice(0, 4);
107
- }, [allVenueMarkets]);
108
- const resolvedVolume = typeof event.volume === "number" ? event.volume : (_a = primaryVenueMarket == null ? void 0 : primaryVenueMarket.volume) != null ? _a : void 0;
109
- const volumeLabel = typeof resolvedVolume === "number" ? `${config.formatCompactCurrency(resolvedVolume)} ${labels.eventItem.volumeSuffix}` : "";
110
- const handleKeyDown = (eventToHandle) => {
111
- if (!onClick)
112
- return;
113
- if (eventToHandle.key === "Enter" || eventToHandle.key === " ") {
114
- eventToHandle.preventDefault();
115
- onClick();
116
- }
117
- };
118
- const renderArbitrage = (value) => {
119
- if (value == null)
120
- return null;
121
- if (Math.abs(value) < config.arbitrageThreshold)
122
- return null;
123
- return /* @__PURE__ */ jsxs("div", { className: cn("flex items-baseline gap-1", "text-agg-success"), children: [
124
- /* @__PURE__ */ jsx(Typography, { variant: "label", className: "text-agg-success", children: config.formatPercent(value) }),
125
- /* @__PURE__ */ jsx(Icon, { name: "triangle-up", size: "xxs", title: labels.eventItem.arbitrage })
126
- ] });
127
- };
128
- return /* @__PURE__ */ jsxs(
129
- Card,
130
- {
131
- className: cn(baseCardClassName, onClick && "cursor-pointer", classNames == null ? void 0 : classNames.root),
132
- role: onClick ? "button" : void 0,
133
- tabIndex: onClick ? 0 : void 0,
134
- onClick,
135
- onKeyDown: handleKeyDown,
136
- "aria-label": ariaLabel != null ? ariaLabel : resolvedTitle,
137
- children: [
138
- /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-3", classNames == null ? void 0 : classNames.header), children: [
139
- resolvedImage ? /* @__PURE__ */ jsx(
140
- "img",
141
- {
142
- src: resolvedImage,
143
- alt: "",
144
- className: cn("h-10 w-10", "rounded-agg-lg object-cover")
145
- }
146
- ) : null,
147
- /* @__PURE__ */ jsx(
148
- Typography,
149
- {
150
- variant: "title",
151
- className: cn(
152
- "min-w-0 text-agg-base font-agg-bold leading-agg-6 whitespace-normal [display:-webkit-box] [-webkit-box-orient:vertical] [-webkit-line-clamp:2] md:block md:truncate md:whitespace-nowrap",
153
- classNames == null ? void 0 : classNames.title
154
- ),
155
- children: resolvedTitle
156
- }
157
- )
158
- ] }),
159
- /* @__PURE__ */ jsx("div", { className: cn("flex flex-col gap-3", classNames == null ? void 0 : classNames.outcomes), children: visibleOutcomes.map((visibleOutcome) => {
160
- const probability = normalizeProbability(visibleOutcome.outcome.price);
161
- const showBadge = typeof probability === "number";
162
- const arbitragePercent = arbitrageByOutcomeId == null ? void 0 : arbitrageByOutcomeId[visibleOutcome.outcome.id];
163
- const outcomeTitle = resolveOutcomeTitle(visibleOutcome.outcome);
164
- const formattedTitle = dayjs(outcomeTitle).isValid() ? dayjs(outcomeTitle).format("MMMM D, YYYY") : outcomeTitle;
165
- return /* @__PURE__ */ jsxs(
166
- "div",
167
- {
168
- className: cn(
169
- "grid w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-3",
170
- classNames == null ? void 0 : classNames.outcomeRow
171
- ),
172
- children: [
173
- /* @__PURE__ */ jsx(
174
- Typography,
175
- {
176
- variant: "body",
177
- className: "min-w-0 truncate text-agg-sm leading-agg-5 md:text-agg-base md:leading-agg-6",
178
- children: formattedTitle
179
- }
180
- ),
181
- renderArbitrage(arbitragePercent),
182
- showBadge ? /* @__PURE__ */ jsx(
183
- Badge,
184
- {
185
- text: config.formatPercent(probability),
186
- prefix: showVenueLogo ? /* @__PURE__ */ jsx(VenueLogo, { venue: visibleOutcome.venue, size: "s" }) : void 0,
187
- size: "l",
188
- classNames: {
189
- root: cn(
190
- "h-9 min-w-[101px] justify-center px-4 text-agg-base leading-agg-6",
191
- classNames == null ? void 0 : classNames.badge
192
- )
193
- }
194
- }
195
- ) : null
196
- ]
197
- },
198
- `${visibleOutcome.market.id}-${visibleOutcome.outcome.id}`
199
- );
200
- }) }),
201
- /* @__PURE__ */ jsxs(
202
- "div",
203
- {
204
- className: cn(
205
- "flex items-center justify-between gap-2",
206
- "text-agg-muted-foreground",
207
- classNames == null ? void 0 : classNames.footer
208
- ),
209
- children: [
210
- /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", "text-agg-sm leading-agg-5"), children: [
211
- /* @__PURE__ */ jsx("span", { className: "truncate text-agg-muted-foreground", children: formatCountLabel(
212
- marketCount,
213
- labels.eventItem.marketSingular,
214
- labels.eventItem.marketPlural
215
- ) }),
216
- /* @__PURE__ */ jsx("span", { className: "text-agg-muted-foreground", children: "\xD7" }),
217
- singleVenue ? /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 truncate text-agg-muted-foreground", children: [
218
- showVenueLogo ? /* @__PURE__ */ jsx(VenueLogo, { venue: singleVenue, size: "xs" }) : null,
219
- /* @__PURE__ */ jsx("span", { children: venueLabel })
220
- ] }) : /* @__PURE__ */ jsx("span", { className: "truncate text-agg-muted-foreground", children: formatCountLabel(
221
- venueCount,
222
- labels.eventItem.venueSingular,
223
- labels.eventItem.venuePlural
224
- ) }),
225
- showVenueLogo && !singleVenue && visibleVenueLogos.length > 0 ? /* @__PURE__ */ jsx("span", { className: "flex items-center gap-1 overflow-hidden", children: visibleVenueLogos.map((venue) => /* @__PURE__ */ jsx(VenueLogo, { venue, size: "xs" }, venue)) }) : null
226
- ] }),
227
- volumeLabel ? /* @__PURE__ */ jsx(Typography, { variant: "meta", className: "text-agg-sm", children: volumeLabel }) : null
228
- ]
229
- }
230
- )
231
- ]
232
- }
233
- );
234
- };
235
- var EventListItemByEventId = (_a) => {
236
- var _b = _a, {
237
- eventId
238
- } = _b, rest = __objRest(_b, [
239
- "eventId"
240
- ]);
241
- const {
242
- event: fetchedEvent,
243
- isError,
244
- isLoading
245
- } = useEvent(eventId, {
246
- enabled: !!eventId
247
- });
248
- const resolvedEvent = useMemo(() => {
249
- return resolveEventListItemEvent(fetchedEvent);
250
- }, [fetchedEvent]);
251
- if (!eventId) {
252
- return /* @__PURE__ */ jsx(EventListItemUnavailableState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
253
- }
254
- if (isLoading) {
255
- return /* @__PURE__ */ jsx(EventListItemLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
256
- }
257
- if (!resolvedEvent && !isError) {
258
- return /* @__PURE__ */ jsx(EventListItemLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
259
- }
260
- if (!resolvedEvent) {
261
- return /* @__PURE__ */ jsx(EventListItemUnavailableState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
262
- }
263
- return /* @__PURE__ */ jsx(EventListItemContent, __spreadValues({ event: resolvedEvent }, rest));
264
- };
265
- var EventListItem = (props) => {
266
- if (props.isLoading) {
267
- return /* @__PURE__ */ jsx(EventListItemLoadingState, { classNames: props.classNames, ariaLabel: props.ariaLabel });
268
- }
269
- if ("event" in props && props.event) {
270
- const _a = props, { event } = _a, rest = __objRest(_a, ["event"]);
271
- return /* @__PURE__ */ jsx(EventListItemContent, __spreadValues({ event }, rest));
272
- }
273
- return /* @__PURE__ */ jsx(EventListItemByEventId, __spreadValues({}, props));
274
- };
275
- EventListItem.displayName = "EventListItem";
276
-
277
- export {
278
- EventListItem
279
- };