@medialane/ui 0.202.0 → 0.204.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 (115) hide show
  1. package/dist/components/account/input-otp.d.cts +2 -2
  2. package/dist/components/account/input-otp.d.ts +2 -2
  3. package/dist/components/activity-row.cjs +2 -1
  4. package/dist/components/activity-row.cjs.map +1 -1
  5. package/dist/components/activity-row.js +2 -1
  6. package/dist/components/activity-row.js.map +1 -1
  7. package/dist/components/badge.d.cts +1 -1
  8. package/dist/components/badge.d.ts +1 -1
  9. package/dist/components/button.d.cts +2 -2
  10. package/dist/components/button.d.ts +2 -2
  11. package/dist/components/collection-name-claim.cjs +100 -0
  12. package/dist/components/collection-name-claim.cjs.map +1 -0
  13. package/dist/components/collection-name-claim.d.cts +5 -0
  14. package/dist/components/collection-name-claim.d.ts +5 -0
  15. package/dist/components/collection-name-claim.js +66 -0
  16. package/dist/components/collection-name-claim.js.map +1 -0
  17. package/dist/components/creators-page.cjs +218 -0
  18. package/dist/components/creators-page.cjs.map +1 -0
  19. package/dist/components/creators-page.d.cts +5 -0
  20. package/dist/components/creators-page.d.ts +5 -0
  21. package/dist/components/creators-page.js +184 -0
  22. package/dist/components/creators-page.js.map +1 -0
  23. package/dist/components/discover-community-section.cjs +171 -0
  24. package/dist/components/discover-community-section.cjs.map +1 -0
  25. package/dist/components/discover-community-section.d.cts +5 -0
  26. package/dist/components/discover-community-section.d.ts +5 -0
  27. package/dist/components/discover-community-section.js +137 -0
  28. package/dist/components/discover-community-section.js.map +1 -0
  29. package/dist/components/discover-page.cjs +96 -0
  30. package/dist/components/discover-page.cjs.map +1 -0
  31. package/dist/components/discover-page.d.cts +14 -0
  32. package/dist/components/discover-page.d.ts +14 -0
  33. package/dist/components/discover-page.js +72 -0
  34. package/dist/components/discover-page.js.map +1 -0
  35. package/dist/components/fast-mint/fast-mint.d.cts +2 -2
  36. package/dist/components/fast-mint/fast-mint.d.ts +2 -2
  37. package/dist/components/home-page.cjs +124 -0
  38. package/dist/components/home-page.cjs.map +1 -0
  39. package/dist/components/home-page.d.cts +13 -0
  40. package/dist/components/home-page.d.ts +13 -0
  41. package/dist/components/home-page.js +90 -0
  42. package/dist/components/home-page.js.map +1 -0
  43. package/dist/components/ip-type-nav.cjs +74 -0
  44. package/dist/components/ip-type-nav.cjs.map +1 -0
  45. package/dist/components/ip-type-nav.d.cts +5 -0
  46. package/dist/components/ip-type-nav.d.ts +5 -0
  47. package/dist/components/ip-type-nav.js +40 -0
  48. package/dist/components/ip-type-nav.js.map +1 -0
  49. package/dist/components/medialane-app.cjs.map +1 -1
  50. package/dist/components/medialane-app.d.cts +1 -0
  51. package/dist/components/medialane-app.d.ts +1 -0
  52. package/dist/components/medialane-app.js.map +1 -1
  53. package/dist/components/portfolio-assets.cjs +114 -0
  54. package/dist/components/portfolio-assets.cjs.map +1 -0
  55. package/dist/components/portfolio-assets.d.cts +19 -0
  56. package/dist/components/portfolio-assets.d.ts +19 -0
  57. package/dist/components/portfolio-assets.js +90 -0
  58. package/dist/components/portfolio-assets.js.map +1 -0
  59. package/dist/components/portfolio-orders.cjs +205 -0
  60. package/dist/components/portfolio-orders.cjs.map +1 -0
  61. package/dist/components/portfolio-orders.d.cts +23 -0
  62. package/dist/components/portfolio-orders.d.ts +23 -0
  63. package/dist/components/portfolio-orders.js +171 -0
  64. package/dist/components/portfolio-orders.js.map +1 -0
  65. package/dist/components/portfolio-shell.cjs +106 -0
  66. package/dist/components/portfolio-shell.cjs.map +1 -0
  67. package/dist/components/portfolio-shell.d.cts +18 -0
  68. package/dist/components/portfolio-shell.d.ts +18 -0
  69. package/dist/components/portfolio-shell.js +81 -0
  70. package/dist/components/portfolio-shell.js.map +1 -0
  71. package/dist/components/rewards/leaderboard-panel.cjs +107 -0
  72. package/dist/components/rewards/leaderboard-panel.cjs.map +1 -0
  73. package/dist/components/rewards/leaderboard-panel.d.cts +12 -0
  74. package/dist/components/rewards/leaderboard-panel.d.ts +12 -0
  75. package/dist/components/rewards/leaderboard-panel.js +73 -0
  76. package/dist/components/rewards/leaderboard-panel.js.map +1 -0
  77. package/dist/components/rewards/rewards-dashboard.cjs +341 -0
  78. package/dist/components/rewards/rewards-dashboard.cjs.map +1 -0
  79. package/dist/components/rewards/rewards-dashboard.d.cts +6 -0
  80. package/dist/components/rewards/rewards-dashboard.d.ts +6 -0
  81. package/dist/components/rewards/rewards-dashboard.js +331 -0
  82. package/dist/components/rewards/rewards-dashboard.js.map +1 -0
  83. package/dist/components/router.cjs +2 -0
  84. package/dist/components/router.cjs.map +1 -1
  85. package/dist/components/router.d.cts +1 -1
  86. package/dist/components/router.d.ts +1 -1
  87. package/dist/components/router.js +2 -1
  88. package/dist/components/router.js.map +1 -1
  89. package/dist/components/sheet.d.cts +1 -1
  90. package/dist/components/sheet.d.ts +1 -1
  91. package/dist/index.cjs +45 -0
  92. package/dist/index.cjs.map +1 -1
  93. package/dist/index.d.cts +13 -0
  94. package/dist/index.d.ts +13 -0
  95. package/dist/index.js +29 -0
  96. package/dist/index.js.map +1 -1
  97. package/dist/utils/order-usd.cjs +35 -0
  98. package/dist/utils/order-usd.cjs.map +1 -0
  99. package/dist/utils/order-usd.d.cts +8 -0
  100. package/dist/utils/order-usd.d.ts +8 -0
  101. package/dist/utils/order-usd.js +11 -0
  102. package/dist/utils/order-usd.js.map +1 -0
  103. package/dist/utils/portfolio-counts.cjs +8 -2
  104. package/dist/utils/portfolio-counts.cjs.map +1 -1
  105. package/dist/utils/portfolio-counts.d.cts +9 -3
  106. package/dist/utils/portfolio-counts.d.ts +9 -3
  107. package/dist/utils/portfolio-counts.js +8 -2
  108. package/dist/utils/portfolio-counts.js.map +1 -1
  109. package/dist/utils/seen-offers.cjs +52 -0
  110. package/dist/utils/seen-offers.cjs.map +1 -0
  111. package/dist/utils/seen-offers.d.cts +4 -0
  112. package/dist/utils/seen-offers.d.ts +4 -0
  113. package/dist/utils/seen-offers.js +27 -0
  114. package/dist/utils/seen-offers.js.map +1 -0
  115. package/package.json +1 -1
@@ -0,0 +1,341 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var rewards_dashboard_exports = {};
31
+ __export(rewards_dashboard_exports, {
32
+ REWARD_ACTION_LABELS: () => REWARD_ACTION_LABELS,
33
+ RewardsDashboard: () => RewardsDashboard
34
+ });
35
+ module.exports = __toCommonJS(rewards_dashboard_exports);
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_link = __toESM(require("../link.js"), 1);
38
+ var import_button = require("../button.js");
39
+ var import_skeleton = require("../skeleton.js");
40
+ var import_medialane_app = require("../medialane-app.js");
41
+ var import_use_rewards = require("../../utils/use-rewards.js");
42
+ var import_level_badge = require("./level-badge.js");
43
+ var import_level_up_celebration = require("./level-up-celebration.js");
44
+ var import_badge_unlocked = require("./badge-unlocked.js");
45
+ var import_use_rewards_celebrations = require("./use-rewards-celebrations.js");
46
+ var import_leaderboard_panel = require("./leaderboard-panel.js");
47
+ var import_lucide_react = require("lucide-react");
48
+ const REWARD_ACTION_LABELS = {
49
+ complete_profile: "Complete profile",
50
+ mint_asset: "Mint assets",
51
+ create_collection: "Create collections",
52
+ launch_launchpad: "Launch drops / POPs",
53
+ create_remix: "Create remixes",
54
+ list_asset: "List assets",
55
+ buy_asset: "Buy assets",
56
+ make_offer: "Make offers",
57
+ counter_offer: "Counter offers",
58
+ offer_accepted_seller: "Offers accepted (sold)",
59
+ offer_accepted_buyer: "Offers accepted (bought)",
60
+ claim_pop: "POP claims",
61
+ claim_drop: "Drop claims",
62
+ comment: "On-chain comments",
63
+ create_ticket_collection: "Ticketed events created",
64
+ buy_ticket: "Tickets received",
65
+ create_club: "Clubs started",
66
+ join_club: "Clubs joined",
67
+ create_sponsorship_offer: "Sponsorships opened",
68
+ place_sponsorship_bid: "Sponsorship bids",
69
+ sponsorship_licensed_sponsor: "Sponsorships secured (sponsor)",
70
+ sponsorship_licensed_author: "Sponsorships secured (creator)",
71
+ launch_coin: "Creator coins launched"
72
+ };
73
+ const BADGE_ICONS = {
74
+ Flame: import_lucide_react.Flame,
75
+ Package: import_lucide_react.Package,
76
+ CheckCircle2: import_lucide_react.CheckCircle2,
77
+ GitBranch: import_lucide_react.GitBranch,
78
+ TrendingUp: import_lucide_react.TrendingUp,
79
+ Layers: import_lucide_react.Layers,
80
+ Ticket: import_lucide_react.Ticket,
81
+ Crown: import_lucide_react.Crown,
82
+ Coins: import_lucide_react.Coins,
83
+ Star: import_lucide_react.Star,
84
+ Gem: import_lucide_react.Gem,
85
+ Zap: import_lucide_react.Zap,
86
+ Award: import_lucide_react.Award,
87
+ Users: import_lucide_react.Users,
88
+ MessageSquare: import_lucide_react.MessageSquare,
89
+ HandCoins: import_lucide_react.HandCoins,
90
+ Handshake: import_lucide_react.Handshake
91
+ };
92
+ const EARN_GROUPS = [
93
+ {
94
+ title: "Create",
95
+ textClass: "text-brand-purple",
96
+ tileClass: "bg-brand-purple",
97
+ items: [
98
+ { label: "Create a collection", href: "/launchpad/single-editions/collection", Icon: import_lucide_react.Layers },
99
+ { label: "Mint an asset", href: "/launchpad/single-editions", Icon: import_lucide_react.Palette },
100
+ { label: "Launch a drop or POP", href: "/launchpad", Icon: import_lucide_react.Rocket },
101
+ { label: "Launch a creator coin", href: "/launchpad/coin/create", Icon: import_lucide_react.Coins },
102
+ { label: "Remix existing work", href: "/marketplace", Icon: import_lucide_react.GitBranch }
103
+ ]
104
+ },
105
+ {
106
+ title: "Collect",
107
+ textClass: "text-brand-blue",
108
+ tileClass: "bg-brand-blue",
109
+ items: [
110
+ { label: "Collect an asset", href: "/marketplace", Icon: import_lucide_react.ShoppingBag },
111
+ { label: "Make an offer", href: "/marketplace", Icon: import_lucide_react.Handshake },
112
+ { label: "List an asset for sale", href: "/portfolio/assets", Icon: import_lucide_react.Tag },
113
+ { label: "Get an event ticket", href: "/launchpad", Icon: import_lucide_react.Ticket }
114
+ ]
115
+ },
116
+ {
117
+ title: "Connect",
118
+ textClass: "text-brand-rose",
119
+ tileClass: "bg-brand-rose",
120
+ items: [
121
+ { label: "Start or join a club", href: "/launchpad", Icon: import_lucide_react.UserRoundCheck },
122
+ { label: "Open a sponsorship", href: "/launchpad", Icon: import_lucide_react.Handshake },
123
+ { label: "Join the conversation", href: "/marketplace", Icon: import_lucide_react.MessageSquare },
124
+ { label: "Complete your profile", href: "/settings", Icon: import_lucide_react.UserRoundCheck }
125
+ ]
126
+ }
127
+ ];
128
+ function Hero() {
129
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-5", children: [
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h1", { className: "text-5xl sm:text-6xl font-black tracking-tight leading-[1.02]", children: [
131
+ "Community ",
132
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "bg-gradient-to-r from-brand-rose to-brand-orange bg-clip-text text-transparent", children: "Rewards" })
133
+ ] }),
134
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-lg text-foreground/70 max-w-xl leading-relaxed font-medium", children: [
135
+ "Every action earns XP, and active members receive allocations from the Creator's Fund based on how much they participate. Scores and badges are recalculated weekly.",
136
+ " ",
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href: "/journey", className: "text-foreground underline underline-offset-2 hover:text-brand-orange transition-colors", children: "See the full system" }),
138
+ "."
139
+ ] })
140
+ ] });
141
+ }
142
+ function SignInButton() {
143
+ const { onRequireWallet, connectLabel } = (0, import_medialane_app.useMedialaneApp)();
144
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { size: "lg", className: "w-full rounded-full px-7", onClick: onRequireWallet, children: connectLabel ?? "Sign in" });
145
+ }
146
+ function StatusPanel({ address }) {
147
+ const { data: rewards, isLoading } = (0, import_use_rewards.useRewards)(address);
148
+ const { data: config } = (0, import_use_rewards.useRewardsConfig)();
149
+ if (!address) {
150
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "shrink-0 rounded-3xl bg-gradient-to-br from-brand-rose/10 via-brand-orange/[0.06] to-transparent p-6 space-y-3 sm:max-w-xs", children: [
151
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-foreground/70 font-medium", children: "Sign in to see your score." }),
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignInButton, {})
153
+ ] });
154
+ }
155
+ if (isLoading || !rewards || !config) {
156
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-40 w-full sm:w-80 rounded-3xl shrink-0" });
157
+ }
158
+ const levelXp = config.levels.find((l) => l.level === rewards.currentLevel)?.xpRequired ?? 0;
159
+ const nextLevelXp = rewards.nextLevel?.xpRequired ?? null;
160
+ const hasXp = rewards.totalXp > 0;
161
+ const pct = nextLevelXp ? Math.min(100, Math.round((rewards.totalXp - levelXp) / (nextLevelXp - levelXp) * 100)) : 100;
162
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "shrink-0 rounded-3xl bg-gradient-to-br from-brand-rose/10 via-brand-orange/[0.06] to-transparent p-6 sm:min-w-[300px]", children: [
163
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-6xl font-black tabular-nums leading-none tracking-tight", children: rewards.totalXp.toLocaleString() }),
164
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-xs font-bold uppercase tracking-widest text-foreground/40 mt-1.5", children: "XP earned" }),
165
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-4 flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_level_badge.LevelBadge, { level: rewards.currentLevel, name: rewards.currentLevelName, badgeColor: rewards.badgeColor, size: "md" }) }),
166
+ !hasXp && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-foreground/60 font-medium mt-2", children: "Mint, collect, or complete your profile to start." }),
167
+ rewards.nextLevel && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-3 space-y-1.5", children: [
168
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-2 w-full rounded-full bg-foreground/[0.08] overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
169
+ "div",
170
+ {
171
+ className: "h-full rounded-full bg-gradient-to-r from-brand-rose to-brand-orange transition-[width]",
172
+ style: { width: `${pct}%` }
173
+ }
174
+ ) }),
175
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-sm font-semibold text-foreground/60", children: [
176
+ (nextLevelXp - rewards.totalXp).toLocaleString(),
177
+ " XP to ",
178
+ rewards.nextLevel.name
179
+ ] })
180
+ ] })
181
+ ] });
182
+ }
183
+ function PersonalPanel({ address }) {
184
+ const { data: rewards } = (0, import_use_rewards.useRewards)(address);
185
+ const { data: events } = (0, import_use_rewards.useRewardsEvents)(address, 1, 6);
186
+ const { data: config } = (0, import_use_rewards.useRewardsConfig)();
187
+ const actionLabel = (type) => config?.actions.find((a) => a.type === type)?.label ?? REWARD_ACTION_LABELS[type] ?? type;
188
+ if (!address || !rewards || Object.keys(rewards.breakdown).length === 0) return null;
189
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-5", children: [
190
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionTitle, { children: "Your breakdown" }),
191
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "divide-y divide-foreground/[0.06]", children: Object.entries(rewards.breakdown).sort(([, a], [, b]) => b - a).map(([action, xp]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between py-3.5", children: [
192
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-base font-medium text-foreground/70", children: actionLabel(action) }),
193
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "text-lg font-black tabular-nums", children: [
194
+ "+",
195
+ xp.toLocaleString()
196
+ ] })
197
+ ] }, action)) }),
198
+ events && events.data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "divide-y divide-foreground/[0.06]", children: events.data.map((e) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between py-3.5", children: [
199
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-base font-medium text-foreground/70", children: actionLabel(e.actionType) }),
200
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "text-lg font-black tabular-nums text-brand-rose", children: [
201
+ "+",
202
+ e.finalXp
203
+ ] })
204
+ ] }, e.id)) })
205
+ ] });
206
+ }
207
+ function CommunityPanel({ address }) {
208
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-5", children: [
209
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
210
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionTitle, { children: "Community" }),
211
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-base text-foreground/60 mt-1.5 font-medium", children: "Real members already earning XP." })
212
+ ] }),
213
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_leaderboard_panel.LeaderboardPanel, { myAddress: address, showHeading: false, limit: 12 })
214
+ ] });
215
+ }
216
+ function EarnMorePanel() {
217
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-6", children: [
218
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionTitle, { children: "Ways to earn" }),
219
+ EARN_GROUPS.map((group) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-3", children: [
220
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `text-sm font-black uppercase tracking-wide ${group.textClass}`, children: group.title }),
221
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-2 sm:grid-cols-3 gap-3", children: group.items.map(({ label, href, Icon }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
222
+ import_link.default,
223
+ {
224
+ href,
225
+ className: "group flex flex-col gap-3 rounded-2xl bg-foreground/[0.04] hover:bg-foreground/[0.07] p-4 transition-colors",
226
+ children: [
227
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `flex h-10 w-10 items-center justify-center rounded-xl text-white shrink-0 ${group.tileClass}`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: "h-5 w-5" }) }),
228
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm font-bold leading-snug text-foreground", children: label })
229
+ ]
230
+ },
231
+ href + label
232
+ )) })
233
+ ] }, group.title))
234
+ ] });
235
+ }
236
+ function CreatorsFundCard() {
237
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "relative overflow-hidden rounded-3xl bg-gradient-to-br from-brand-rose to-brand-orange p-8 text-white", children: [
238
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute -top-16 -right-16 h-56 w-56 rounded-full bg-white/10 blur-3xl" }),
239
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute -bottom-20 -left-10 h-56 w-56 rounded-full bg-black/10 blur-3xl" }),
240
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative space-y-6", children: [
241
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-3xl font-black tracking-tight leading-none", children: "Creator's Fund" }),
242
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-base font-medium text-white/90 leading-relaxed max-w-sm", children: "A share of what Medialane earns is set aside in one public wallet and airdropped back to the people creating and trading here, split by XP." }),
243
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-wrap items-center gap-4 pt-2", children: [
244
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
245
+ import_link.default,
246
+ {
247
+ href: "/airdrop",
248
+ className: "inline-flex items-center gap-2 rounded-full bg-white px-6 py-3 text-sm font-black text-brand-rose hover:bg-white/90 transition-colors",
249
+ children: [
250
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Gift, { className: "h-4 w-4" }),
251
+ "How the fund works"
252
+ ]
253
+ }
254
+ ),
255
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
256
+ "a",
257
+ {
258
+ href: "https://medialane.org/creators-fund",
259
+ target: "_blank",
260
+ rel: "noopener noreferrer",
261
+ className: "inline-flex items-center gap-1.5 text-sm font-bold text-white/90 hover:text-white transition-colors",
262
+ children: [
263
+ "Watch the wallet",
264
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ExternalLink, { className: "h-3.5 w-3.5" })
265
+ ]
266
+ }
267
+ )
268
+ ] })
269
+ ] })
270
+ ] });
271
+ }
272
+ function BadgesPanel({ address }) {
273
+ const { data: config, isLoading } = (0, import_use_rewards.useRewardsConfig)();
274
+ const { data: rewards } = (0, import_use_rewards.useRewards)(address);
275
+ if (isLoading) {
276
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-3 gap-3", children: Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_skeleton.Skeleton, { className: "h-16 rounded-2xl" }, i)) });
277
+ }
278
+ if (!config) return null;
279
+ const earnedKeys = new Set(rewards?.badges.map((b) => b.key) ?? []);
280
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-4", children: [
281
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SectionTitle, { children: "Badges to earn" }),
282
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-3 gap-3", children: config.badges.map((badge) => {
283
+ const isEarned = earnedKeys.has(badge.key);
284
+ const Icon = BADGE_ICONS[badge.icon] ?? import_lucide_react.Award;
285
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
286
+ "div",
287
+ {
288
+ title: badge.description,
289
+ className: `flex flex-col items-center gap-1.5 rounded-2xl p-3 text-center transition-colors ${isEarned ? "bg-brand-blue text-white" : "bg-foreground/[0.04] text-foreground/40"}`,
290
+ children: [
291
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: "h-5 w-5" }),
292
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs font-bold leading-tight", children: badge.name })
293
+ ]
294
+ },
295
+ badge.key
296
+ );
297
+ }) })
298
+ ] });
299
+ }
300
+ function SectionTitle({ children }) {
301
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-2xl font-black tracking-tight text-foreground", children });
302
+ }
303
+ function RewardsDashboard() {
304
+ const { walletAddress: address } = (0, import_medialane_app.useMedialaneApp)();
305
+ const { data: rewards } = (0, import_use_rewards.useRewards)(address);
306
+ const { leveledUpTo, newBadgeKeys, dismiss } = (0, import_use_rewards_celebrations.useRewardsCelebrations)(address, rewards ?? null);
307
+ const unlockedBadges = rewards ? newBadgeKeys.map((key) => rewards.badges.find((b) => b.key === key)).filter((b) => b !== void 0) : [];
308
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-14", children: [
309
+ unlockedBadges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "space-y-3", children: unlockedBadges.map((badge) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_badge_unlocked.BadgeUnlocked, { badge }, badge.key)) }),
310
+ leveledUpTo !== null && rewards && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
311
+ import_level_up_celebration.LevelUpCelebration,
312
+ {
313
+ level: leveledUpTo,
314
+ name: rewards.currentLevelName,
315
+ badgeColor: rewards.badgeColor,
316
+ onDismiss: dismiss
317
+ }
318
+ ),
319
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-8", children: [
320
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Hero, {}),
321
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StatusPanel, { address })
322
+ ] }),
323
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-14 items-start", children: [
324
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "lg:col-span-7 space-y-14", children: [
325
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommunityPanel, { address }),
326
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PersonalPanel, { address })
327
+ ] }),
328
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "lg:col-span-5 space-y-10", children: [
329
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EarnMorePanel, {}),
330
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CreatorsFundCard, {}),
331
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BadgesPanel, { address })
332
+ ] })
333
+ ] })
334
+ ] });
335
+ }
336
+ // Annotate the CommonJS export names for ESM import in node:
337
+ 0 && (module.exports = {
338
+ REWARD_ACTION_LABELS,
339
+ RewardsDashboard
340
+ });
341
+ //# sourceMappingURL=rewards-dashboard.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/rewards/rewards-dashboard.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"../link.js\";\nimport { Button } from \"../button.js\";\nimport { Skeleton } from \"../skeleton.js\";\nimport { useMedialaneApp } from \"../medialane-app.js\";\nimport { useRewards, useRewardsConfig, useRewardsEvents } from \"../../utils/use-rewards.js\";\nimport { LevelBadge } from \"./level-badge.js\";\nimport { LevelUpCelebration } from \"./level-up-celebration.js\";\nimport { BadgeUnlocked } from \"./badge-unlocked.js\";\nimport { useRewardsCelebrations } from \"./use-rewards-celebrations.js\";\nimport { LeaderboardPanel } from \"./leaderboard-panel.js\";\nimport type { ApiRewardsBadge } from \"@medialane/sdk\";\nimport {\n Gift,\n ExternalLink,\n Palette,\n Layers,\n Tag,\n Handshake,\n ShoppingBag,\n Rocket,\n GitBranch,\n UserRoundCheck,\n Ticket,\n MessageSquare,\n Users,\n type LucideIcon,\n Package,\n CheckCircle2,\n TrendingUp,\n Crown,\n Coins,\n Star,\n Gem,\n Award,\n HandCoins,\n Flame,\n Zap,\n} from \"lucide-react\";\n\nexport const REWARD_ACTION_LABELS: Record<string, string> = {\n complete_profile: \"Complete profile\",\n mint_asset: \"Mint assets\",\n create_collection: \"Create collections\",\n launch_launchpad: \"Launch drops / POPs\",\n create_remix: \"Create remixes\",\n list_asset: \"List assets\",\n buy_asset: \"Buy assets\",\n make_offer: \"Make offers\",\n counter_offer: \"Counter offers\",\n offer_accepted_seller: \"Offers accepted (sold)\",\n offer_accepted_buyer: \"Offers accepted (bought)\",\n claim_pop: \"POP claims\",\n claim_drop: \"Drop claims\",\n comment: \"On-chain comments\",\n create_ticket_collection: \"Ticketed events created\",\n buy_ticket: \"Tickets received\",\n create_club: \"Clubs started\",\n join_club: \"Clubs joined\",\n create_sponsorship_offer: \"Sponsorships opened\",\n place_sponsorship_bid: \"Sponsorship bids\",\n sponsorship_licensed_sponsor: \"Sponsorships secured (sponsor)\",\n sponsorship_licensed_author: \"Sponsorships secured (creator)\",\n launch_coin: \"Creator coins launched\",\n};\n\nconst BADGE_ICONS: Record<string, LucideIcon> = {\n Flame, Package, CheckCircle2, GitBranch, TrendingUp, Layers,\n Ticket, Crown, Coins, Star, Gem, Zap, Award, Users, MessageSquare, HandCoins,\n Handshake,\n};\n\nconst EARN_GROUPS: {\n title: string;\n textClass: string;\n tileClass: string;\n items: { label: string; href: string; Icon: LucideIcon }[];\n}[] = [\n {\n title: \"Create\",\n textClass: \"text-brand-purple\",\n tileClass: \"bg-brand-purple\",\n items: [\n { label: \"Create a collection\", href: \"/launchpad/single-editions/collection\", Icon: Layers },\n { label: \"Mint an asset\", href: \"/launchpad/single-editions\", Icon: Palette },\n { label: \"Launch a drop or POP\", href: \"/launchpad\", Icon: Rocket },\n { label: \"Launch a creator coin\", href: \"/launchpad/coin/create\", Icon: Coins },\n { label: \"Remix existing work\", href: \"/marketplace\", Icon: GitBranch },\n ],\n },\n {\n title: \"Collect\",\n textClass: \"text-brand-blue\",\n tileClass: \"bg-brand-blue\",\n items: [\n { label: \"Collect an asset\", href: \"/marketplace\", Icon: ShoppingBag },\n { label: \"Make an offer\", href: \"/marketplace\", Icon: Handshake },\n { label: \"List an asset for sale\", href: \"/portfolio/assets\", Icon: Tag },\n { label: \"Get an event ticket\", href: \"/launchpad\", Icon: Ticket },\n ],\n },\n {\n title: \"Connect\",\n textClass: \"text-brand-rose\",\n tileClass: \"bg-brand-rose\",\n items: [\n { label: \"Start or join a club\", href: \"/launchpad\", Icon: UserRoundCheck },\n { label: \"Open a sponsorship\", href: \"/launchpad\", Icon: Handshake },\n { label: \"Join the conversation\", href: \"/marketplace\", Icon: MessageSquare },\n { label: \"Complete your profile\", href: \"/settings\", Icon: UserRoundCheck },\n ],\n },\n];\n\nfunction Hero() {\n return (\n <section className=\"space-y-5\">\n <h1 className=\"text-5xl sm:text-6xl font-black tracking-tight leading-[1.02]\">\n Community <span className=\"bg-gradient-to-r from-brand-rose to-brand-orange bg-clip-text text-transparent\">Rewards</span>\n </h1>\n <p className=\"text-lg text-foreground/70 max-w-xl leading-relaxed font-medium\">\n Every action earns XP, and active members receive allocations from the\n Creator&apos;s Fund based on how much they participate. Scores and\n badges are recalculated weekly.{\" \"}\n <Link href=\"/journey\" className=\"text-foreground underline underline-offset-2 hover:text-brand-orange transition-colors\">\n See the full system\n </Link>\n .\n </p>\n </section>\n );\n}\n\nfunction SignInButton() {\n const { onRequireWallet, connectLabel } = useMedialaneApp();\n return (\n <Button size=\"lg\" className=\"w-full rounded-full px-7\" onClick={onRequireWallet}>\n {connectLabel ?? \"Sign in\"}\n </Button>\n );\n}\n\nfunction StatusPanel({ address }: { address: string | null | undefined }) {\n const { data: rewards, isLoading } = useRewards(address);\n const { data: config } = useRewardsConfig();\n\n if (!address) {\n return (\n <div className=\"shrink-0 rounded-3xl bg-gradient-to-br from-brand-rose/10 via-brand-orange/[0.06] to-transparent p-6 space-y-3 sm:max-w-xs\">\n <p className=\"text-sm text-foreground/70 font-medium\">Sign in to see your score.</p>\n <SignInButton />\n </div>\n );\n }\n\n if (isLoading || !rewards || !config) {\n return <Skeleton className=\"h-40 w-full sm:w-80 rounded-3xl shrink-0\" />;\n }\n\n const levelXp = config.levels.find((l) => l.level === rewards.currentLevel)?.xpRequired ?? 0;\n const nextLevelXp = rewards.nextLevel?.xpRequired ?? null;\n const hasXp = rewards.totalXp > 0;\n const pct = nextLevelXp ? Math.min(100, Math.round(((rewards.totalXp - levelXp) / (nextLevelXp - levelXp)) * 100)) : 100;\n\n return (\n <div className=\"shrink-0 rounded-3xl bg-gradient-to-br from-brand-rose/10 via-brand-orange/[0.06] to-transparent p-6 sm:min-w-[300px]\">\n <p className=\"text-6xl font-black tabular-nums leading-none tracking-tight\">\n {rewards.totalXp.toLocaleString()}\n </p>\n <p className=\"text-xs font-bold uppercase tracking-widest text-foreground/40 mt-1.5\">XP earned</p>\n\n <div className=\"mt-4 flex items-center gap-2\">\n <LevelBadge level={rewards.currentLevel} name={rewards.currentLevelName} badgeColor={rewards.badgeColor} size=\"md\" />\n </div>\n {!hasXp && (\n <p className=\"text-sm text-foreground/60 font-medium mt-2\">Mint, collect, or complete your profile to start.</p>\n )}\n {rewards.nextLevel && (\n <div className=\"mt-3 space-y-1.5\">\n <div className=\"h-2 w-full rounded-full bg-foreground/[0.08] overflow-hidden\">\n <div\n className=\"h-full rounded-full bg-gradient-to-r from-brand-rose to-brand-orange transition-[width]\"\n style={{ width: `${pct}%` }}\n />\n </div>\n <p className=\"text-sm font-semibold text-foreground/60\">\n {(nextLevelXp! - rewards.totalXp).toLocaleString()} XP to {rewards.nextLevel.name}\n </p>\n </div>\n )}\n </div>\n );\n}\n\nfunction PersonalPanel({ address }: { address: string | null | undefined }) {\n const { data: rewards } = useRewards(address);\n const { data: events } = useRewardsEvents(address, 1, 6);\n const { data: config } = useRewardsConfig();\n\n const actionLabel = (type: string) =>\n config?.actions.find((a) => a.type === type)?.label ?? REWARD_ACTION_LABELS[type] ?? type;\n\n if (!address || !rewards || Object.keys(rewards.breakdown).length === 0) return null;\n\n return (\n <section className=\"space-y-5\">\n <SectionTitle>Your breakdown</SectionTitle>\n <div className=\"divide-y divide-foreground/[0.06]\">\n {Object.entries(rewards.breakdown)\n .sort(([, a], [, b]) => b - a)\n .map(([action, xp]) => (\n <div key={action} className=\"flex items-center justify-between py-3.5\">\n <span className=\"text-base font-medium text-foreground/70\">{actionLabel(action)}</span>\n <span className=\"text-lg font-black tabular-nums\">+{xp.toLocaleString()}</span>\n </div>\n ))}\n </div>\n {events && events.data.length > 0 && (\n <div className=\"divide-y divide-foreground/[0.06]\">\n {events.data.map((e) => (\n <div key={e.id} className=\"flex items-center justify-between py-3.5\">\n <span className=\"text-base font-medium text-foreground/70\">{actionLabel(e.actionType)}</span>\n <span className=\"text-lg font-black tabular-nums text-brand-rose\">+{e.finalXp}</span>\n </div>\n ))}\n </div>\n )}\n </section>\n );\n}\n\nfunction CommunityPanel({ address }: { address: string | null | undefined }) {\n return (\n <section className=\"space-y-5\">\n <div>\n <SectionTitle>Community</SectionTitle>\n <p className=\"text-base text-foreground/60 mt-1.5 font-medium\">Real members already earning XP.</p>\n </div>\n <LeaderboardPanel myAddress={address} showHeading={false} limit={12} />\n </section>\n );\n}\n\nfunction EarnMorePanel() {\n return (\n <section className=\"space-y-6\">\n <SectionTitle>Ways to earn</SectionTitle>\n {EARN_GROUPS.map((group) => (\n <div key={group.title} className=\"space-y-3\">\n <p className={`text-sm font-black uppercase tracking-wide ${group.textClass}`}>{group.title}</p>\n <div className=\"grid grid-cols-2 sm:grid-cols-3 gap-3\">\n {group.items.map(({ label, href, Icon }) => (\n <Link\n key={href + label}\n href={href}\n className=\"group flex flex-col gap-3 rounded-2xl bg-foreground/[0.04] hover:bg-foreground/[0.07] p-4 transition-colors\"\n >\n <span className={`flex h-10 w-10 items-center justify-center rounded-xl text-white shrink-0 ${group.tileClass}`}>\n <Icon className=\"h-5 w-5\" />\n </span>\n <span className=\"text-sm font-bold leading-snug text-foreground\">{label}</span>\n </Link>\n ))}\n </div>\n </div>\n ))}\n </section>\n );\n}\n\nfunction CreatorsFundCard() {\n return (\n <section className=\"relative overflow-hidden rounded-3xl bg-gradient-to-br from-brand-rose to-brand-orange p-8 text-white\">\n <div className=\"pointer-events-none absolute -top-16 -right-16 h-56 w-56 rounded-full bg-white/10 blur-3xl\" />\n <div className=\"pointer-events-none absolute -bottom-20 -left-10 h-56 w-56 rounded-full bg-black/10 blur-3xl\" />\n\n <div className=\"relative space-y-6\">\n <h2 className=\"text-3xl font-black tracking-tight leading-none\">\n Creator&apos;s Fund\n </h2>\n\n <p className=\"text-base font-medium text-white/90 leading-relaxed max-w-sm\">\n A share of what Medialane earns is set aside in one public wallet and airdropped back\n to the people creating and trading here, split by XP.\n </p>\n\n <div className=\"flex flex-wrap items-center gap-4 pt-2\">\n <Link\n href=\"/airdrop\"\n className=\"inline-flex items-center gap-2 rounded-full bg-white px-6 py-3 text-sm font-black text-brand-rose hover:bg-white/90 transition-colors\"\n >\n <Gift className=\"h-4 w-4\" />\n How the fund works\n </Link>\n <a\n href=\"https://medialane.org/creators-fund\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className=\"inline-flex items-center gap-1.5 text-sm font-bold text-white/90 hover:text-white transition-colors\"\n >\n Watch the wallet\n <ExternalLink className=\"h-3.5 w-3.5\" />\n </a>\n </div>\n </div>\n </section>\n );\n}\n\nfunction BadgesPanel({ address }: { address: string | null | undefined }) {\n const { data: config, isLoading } = useRewardsConfig();\n const { data: rewards } = useRewards(address);\n\n if (isLoading) {\n return (\n <div className=\"grid grid-cols-3 gap-3\">\n {Array.from({ length: 6 }).map((_, i) => (\n <Skeleton key={i} className=\"h-16 rounded-2xl\" />\n ))}\n </div>\n );\n }\n\n if (!config) return null;\n\n const earnedKeys = new Set(rewards?.badges.map((b) => b.key) ?? []);\n\n return (\n <section className=\"space-y-4\">\n <SectionTitle>Badges to earn</SectionTitle>\n <div className=\"grid grid-cols-3 gap-3\">\n {config.badges.map((badge: ApiRewardsBadge) => {\n const isEarned = earnedKeys.has(badge.key);\n const Icon = BADGE_ICONS[badge.icon] ?? Award;\n return (\n <div\n key={badge.key}\n title={badge.description}\n className={`flex flex-col items-center gap-1.5 rounded-2xl p-3 text-center transition-colors ${\n isEarned ? \"bg-brand-blue text-white\" : \"bg-foreground/[0.04] text-foreground/40\"\n }`}\n >\n <Icon className=\"h-5 w-5\" />\n <span className=\"text-xs font-bold leading-tight\">{badge.name}</span>\n </div>\n );\n })}\n </div>\n </section>\n );\n}\n\nfunction SectionTitle({ children }: { children: React.ReactNode }) {\n return <h2 className=\"text-2xl font-black tracking-tight text-foreground\">{children}</h2>;\n}\n\nexport function RewardsDashboard() {\n const { walletAddress: address } = useMedialaneApp();\n const { data: rewards } = useRewards(address);\n const { leveledUpTo, newBadgeKeys, dismiss } = useRewardsCelebrations(address, rewards ?? null);\n\n const unlockedBadges = rewards\n ? newBadgeKeys.map((key) => rewards.badges.find((b) => b.key === key)).filter((b) => b !== undefined)\n : [];\n\n return (\n <div className=\"space-y-14\">\n {unlockedBadges.length > 0 && (\n <div className=\"space-y-3\">\n {unlockedBadges.map((badge) => (\n <BadgeUnlocked key={badge.key} badge={badge} />\n ))}\n </div>\n )}\n\n {leveledUpTo !== null && rewards && (\n <LevelUpCelebration\n level={leveledUpTo}\n name={rewards.currentLevelName}\n badgeColor={rewards.badgeColor}\n onDismiss={dismiss}\n />\n )}\n\n <div className=\"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-8\">\n <Hero />\n <StatusPanel address={address} />\n </div>\n\n <div className=\"grid grid-cols-1 lg:grid-cols-12 gap-14 items-start\">\n\n <div className=\"lg:col-span-7 space-y-14\">\n <CommunityPanel address={address} />\n <PersonalPanel address={address} />\n </div>\n\n <div className=\"lg:col-span-5 space-y-10\">\n <EarnMorePanel />\n <CreatorsFundCard />\n <BadgesPanel address={address} />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsHM;AApHN,kBAAiB;AACjB,oBAAuB;AACvB,sBAAyB;AACzB,2BAAgC;AAChC,yBAA+D;AAC/D,yBAA2B;AAC3B,kCAAmC;AACnC,4BAA8B;AAC9B,sCAAuC;AACvC,+BAAiC;AAEjC,0BA0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E,eAAe,QAAQ,QAAI,sCAAgB;AACnD,QAAM,EAAE,MAAM,QAAQ,QAAI,+BAAW,OAAO;AAC5C,QAAM,EAAE,aAAa,cAAc,QAAQ,QAAI,wDAAuB,SAAS,WAAW,IAAI;AAE9F,QAAM,iBAAiB,UACnB,aAAa,IAAI,CAAC,QAAQ,QAAQ,OAAO,KAAK,CAAC,MAAM,EAAE,QAAQ,GAAG,CAAC,EAAE,OAAO,CAAC,MAAM,MAAM,MAAS,IAClG,CAAC;AAEL,SACE,6CAAC,SAAI,WAAU,cACZ;AAAA,mBAAe,SAAS,KACvB,4CAAC,SAAI,WAAU,aACZ,yBAAe,IAAI,CAAC,UACnB,4CAAC,uCAA8B,SAAX,MAAM,GAAmB,CAC9C,GACH;AAAA,IAGD,gBAAgB,QAAQ,WACvB;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP,MAAM,QAAQ;AAAA,QACd,YAAY,QAAQ;AAAA,QACpB,WAAW;AAAA;AAAA,IACb;AAAA,IAGF,6CAAC,SAAI,WAAU,qEACb;AAAA,kDAAC,QAAK;AAAA,MACN,4CAAC,eAAY,SAAkB;AAAA,OACjC;AAAA,IAEA,6CAAC,SAAI,WAAU,uDAEb;AAAA,mDAAC,SAAI,WAAU,4BACb;AAAA,oDAAC,kBAAe,SAAkB;AAAA,QAClC,4CAAC,iBAAc,SAAkB;AAAA,SACnC;AAAA,MAEA,6CAAC,SAAI,WAAU,4BACb;AAAA,oDAAC,iBAAc;AAAA,QACf,4CAAC,oBAAiB;AAAA,QAClB,4CAAC,eAAY,SAAkB;AAAA,SACjC;AAAA,OACF;AAAA,KACF;AAEJ;","names":["Link"]}
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare const REWARD_ACTION_LABELS: Record<string, string>;
4
+ declare function RewardsDashboard(): react_jsx_runtime.JSX.Element;
5
+
6
+ export { REWARD_ACTION_LABELS, RewardsDashboard };
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare const REWARD_ACTION_LABELS: Record<string, string>;
4
+ declare function RewardsDashboard(): react_jsx_runtime.JSX.Element;
5
+
6
+ export { REWARD_ACTION_LABELS, RewardsDashboard };