@burdenoff/microfe-eventfullymanaged 2026.1108.1 → 2026.1110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eventfullymanaged/api/eventApi.d.ts +16 -0
- package/dist/eventfullymanaged/api/eventApi.js +107 -97
- package/dist/eventfullymanaged/api/eventApi.js.map +1 -1
- package/dist/eventfullymanaged/lib/printBadge.d.ts +1 -0
- package/dist/eventfullymanaged/lib/printBadge.js +30 -0
- package/dist/eventfullymanaged/lib/printBadge.js.map +1 -0
- package/dist/eventfullymanaged/lib/useBadgePrint.d.ts +11 -0
- package/dist/eventfullymanaged/lib/useBadgePrint.js +38 -0
- package/dist/eventfullymanaged/lib/useBadgePrint.js.map +1 -0
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js +252 -249
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.js +321 -285
- package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +81 -78
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js +87 -86
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +93 -91
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/utils/breadcrumbRegistry.d.ts +2 -0
- package/dist/eventfullymanaged/utils/breadcrumbRegistry.js +13 -0
- package/dist/eventfullymanaged/utils/breadcrumbRegistry.js.map +1 -0
- package/package.json +1 -1
|
@@ -3,183 +3,186 @@ import { EntityTagsField as n } from "../../components/EntityTagsField.js";
|
|
|
3
3
|
import { ResolvedImage as r } from "../../components/ResolvedImage.js";
|
|
4
4
|
import { SafeLink as i } from "../../components/SafeLink.js";
|
|
5
5
|
import { useEventfullyManaged as a } from "../../context/EventfullyManagedContext.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
6
|
+
import { registerBreadcrumbName as o, unregisterBreadcrumbName as s } from "../../utils/breadcrumbRegistry.js";
|
|
7
|
+
import { EntityListSection as c } from "./EntityListSection.js";
|
|
8
|
+
import { useEffect as l, useMemo as u } from "react";
|
|
9
|
+
import { useParams as d } from "react-router";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
+
import { Building2 as m, Coins as h, Magnet as g, Megaphone as _, Pencil as v, TrendingUp as y } from "lucide-react";
|
|
12
|
+
import { Badge as b, EmphasisPanel as x, GlassCard as S, GradientText as C, NextSteps as w, PagePurpose as T } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { ContextConversationWidget as E } from "@burdenoff/fe-libs/shared";
|
|
14
|
+
import { useRegisterPageConversationContext as D } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
14
15
|
// src/eventfullymanaged/pages/modules/SponsorDetailsPage.tsx
|
|
15
|
-
function
|
|
16
|
-
let n =
|
|
16
|
+
function O({ sponsorId: e, sponsorName: t }) {
|
|
17
|
+
let n = u(() => ({
|
|
17
18
|
entityType: "EVENTFULLYMANAGED_SPONSOR",
|
|
18
19
|
entityId: e,
|
|
19
20
|
contextTitle: `Sponsor · ${t}`
|
|
20
21
|
}), [e, t]);
|
|
21
|
-
return
|
|
22
|
+
return D(n), /* @__PURE__ */ f(E, { widgetKey: "sponsor-message" });
|
|
22
23
|
}
|
|
23
|
-
var
|
|
24
|
+
var k = new Intl.NumberFormat(void 0, {
|
|
24
25
|
notation: "compact",
|
|
25
26
|
maximumFractionDigits: 1
|
|
26
27
|
});
|
|
27
|
-
function
|
|
28
|
-
let { id:
|
|
28
|
+
function A() {
|
|
29
|
+
let { id: E = "" } = d(), { navigate: D } = a(), A = t(E), j = e({
|
|
29
30
|
limit: 100,
|
|
30
31
|
offset: 0
|
|
31
|
-
}),
|
|
32
|
-
|
|
32
|
+
}), M = A.data?.sponsor ?? null;
|
|
33
|
+
l(() => (o(E, M?.name), () => s(E)), [E, M?.name]);
|
|
34
|
+
let N = u(() => j.data?.communicationCampaigns.items ?? [], [j.data]), P = M?.metrics ?? {}, F = Number(P.value ?? 0), I = Number(P.leads ?? 0), L = Number(P.leadsTarget ?? 0), R = L > 0 ? Math.min(100, Math.round(I / L * 100)) : 0;
|
|
35
|
+
return /* @__PURE__ */ p("div", {
|
|
33
36
|
className: "space-y-6 p-6",
|
|
34
37
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ f(T, { children: "Everything about one sponsor in one place — their tier, contract value, leads, contacts, and the campaigns they appear in. Use this to prep for a sponsor conversation, confirm details, or check how their branded campaigns are performing." }),
|
|
39
|
+
/* @__PURE__ */ p(x, { children: [/* @__PURE__ */ p("div", {
|
|
37
40
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
38
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ p("div", {
|
|
39
42
|
className: "flex items-center gap-4",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
43
|
+
children: [/* @__PURE__ */ f("span", {
|
|
41
44
|
className: "flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-card border border-border-subtle bg-bg-sunken",
|
|
42
|
-
children:
|
|
43
|
-
value:
|
|
45
|
+
children: M?.logoUrl ? /* @__PURE__ */ f(r, {
|
|
46
|
+
value: M.logoUrl,
|
|
44
47
|
alt: "",
|
|
45
48
|
className: "h-full w-full object-cover"
|
|
46
|
-
}) : /* @__PURE__ */
|
|
47
|
-
}), /* @__PURE__ */
|
|
49
|
+
}) : /* @__PURE__ */ f(m, { className: "h-6 w-6 text-text-muted" })
|
|
50
|
+
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h1", {
|
|
48
51
|
className: "text-2xl font-bold text-text-primary",
|
|
49
|
-
children: /* @__PURE__ */
|
|
50
|
-
}), /* @__PURE__ */
|
|
52
|
+
children: /* @__PURE__ */ f(C, { children: M?.name ?? "Sponsor" })
|
|
53
|
+
}), /* @__PURE__ */ f("p", {
|
|
51
54
|
className: "mt-1 text-sm text-text-secondary",
|
|
52
|
-
children:
|
|
55
|
+
children: A.loading ? "Loading sponsor details..." : M ? "Live sponsor profile and partnership metrics." : "Sponsor not found in current query scope."
|
|
53
56
|
})] })]
|
|
54
|
-
}),
|
|
57
|
+
}), M ? /* @__PURE__ */ f(b, {
|
|
55
58
|
variant: "secondary",
|
|
56
59
|
className: "shrink-0 self-start uppercase",
|
|
57
|
-
children:
|
|
60
|
+
children: M.level
|
|
58
61
|
}) : null]
|
|
59
|
-
}),
|
|
62
|
+
}), M ? /* @__PURE__ */ p("div", {
|
|
60
63
|
className: "mt-5 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
61
64
|
children: [
|
|
62
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ p(S, {
|
|
63
66
|
treatment: "metric",
|
|
64
67
|
className: "p-4",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
68
|
+
children: [/* @__PURE__ */ p("div", {
|
|
66
69
|
className: "flex items-center gap-2 text-text-secondary",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ f(h, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ f("p", {
|
|
68
71
|
className: "text-xs font-medium uppercase tracking-wide",
|
|
69
72
|
children: "Contract value"
|
|
70
73
|
})]
|
|
71
|
-
}), /* @__PURE__ */
|
|
74
|
+
}), /* @__PURE__ */ p("p", {
|
|
72
75
|
className: "mt-1.5 text-2xl font-bold tabular-nums text-text-primary",
|
|
73
|
-
children: ["$",
|
|
76
|
+
children: ["$", k.format(F)]
|
|
74
77
|
})]
|
|
75
78
|
}),
|
|
76
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ p(S, {
|
|
77
80
|
treatment: "metric",
|
|
78
81
|
className: "p-4",
|
|
79
82
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ p("div", {
|
|
81
84
|
className: "flex items-center gap-2 text-text-secondary",
|
|
82
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ f(g, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ f("p", {
|
|
83
86
|
className: "text-xs font-medium uppercase tracking-wide",
|
|
84
87
|
children: "Leads"
|
|
85
88
|
})]
|
|
86
89
|
}),
|
|
87
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ f("p", {
|
|
88
91
|
className: "mt-1.5 text-2xl font-bold tabular-nums text-text-primary",
|
|
89
|
-
children:
|
|
92
|
+
children: I.toLocaleString()
|
|
90
93
|
}),
|
|
91
|
-
|
|
94
|
+
L > 0 ? /* @__PURE__ */ p("div", {
|
|
92
95
|
className: "mt-2",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
96
|
+
children: [/* @__PURE__ */ f("div", {
|
|
94
97
|
className: "h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
95
|
-
children: /* @__PURE__ */
|
|
98
|
+
children: /* @__PURE__ */ f("div", {
|
|
96
99
|
className: "h-full rounded-full",
|
|
97
100
|
style: {
|
|
98
|
-
width: `${
|
|
101
|
+
width: `${R}%`,
|
|
99
102
|
background: "linear-gradient(90deg, var(--color-chart-1), var(--color-chart-2))"
|
|
100
103
|
}
|
|
101
104
|
})
|
|
102
|
-
}), /* @__PURE__ */
|
|
105
|
+
}), /* @__PURE__ */ p("p", {
|
|
103
106
|
className: "mt-1 text-xs text-text-secondary",
|
|
104
107
|
children: [
|
|
105
|
-
|
|
108
|
+
R,
|
|
106
109
|
"% of ",
|
|
107
|
-
|
|
110
|
+
L.toLocaleString(),
|
|
108
111
|
" target"
|
|
109
112
|
]
|
|
110
113
|
})]
|
|
111
114
|
}) : null
|
|
112
115
|
]
|
|
113
116
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ p(S, {
|
|
115
118
|
treatment: "metric",
|
|
116
119
|
className: "p-4",
|
|
117
120
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ f("p", {
|
|
119
122
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
120
123
|
children: "Primary contact"
|
|
121
124
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ f("p", {
|
|
123
126
|
className: "mt-1.5 truncate font-medium text-text-primary",
|
|
124
|
-
children:
|
|
127
|
+
children: M.contactName ?? "Unassigned"
|
|
125
128
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ f("p", {
|
|
127
130
|
className: "truncate text-xs text-text-secondary",
|
|
128
|
-
children:
|
|
131
|
+
children: M.contactEmail ?? "No email"
|
|
129
132
|
}),
|
|
130
|
-
|
|
131
|
-
href:
|
|
133
|
+
M.website ? /* @__PURE__ */ f(i, {
|
|
134
|
+
href: M.website,
|
|
132
135
|
className: "mt-1 block truncate text-xs text-text-link hover:underline",
|
|
133
136
|
fallbackClassName: "mt-1 block truncate text-xs text-text-secondary",
|
|
134
|
-
children:
|
|
137
|
+
children: M.website
|
|
135
138
|
}) : null
|
|
136
139
|
]
|
|
137
140
|
})
|
|
138
141
|
]
|
|
139
142
|
}) : null] }),
|
|
140
|
-
|
|
143
|
+
M ? /* @__PURE__ */ p(S, {
|
|
141
144
|
treatment: "plain",
|
|
142
145
|
className: "border-border-seam p-5",
|
|
143
146
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ f("h2", {
|
|
145
148
|
className: "text-lg font-semibold text-text-primary",
|
|
146
149
|
children: "Tags"
|
|
147
150
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ f("p", {
|
|
149
152
|
className: "mt-1 text-sm text-text-secondary",
|
|
150
153
|
children: "Label this sponsor so you can segment your portfolio — for example by industry, tier or renewal status."
|
|
151
154
|
}),
|
|
152
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ f(n, {
|
|
153
156
|
entityType: "EVENTFULLYMANAGED_SPONSOR",
|
|
154
|
-
entityId:
|
|
157
|
+
entityId: M.id,
|
|
155
158
|
label: "Sponsor tags",
|
|
156
159
|
className: "mt-3"
|
|
157
160
|
})
|
|
158
161
|
]
|
|
159
162
|
}) : null,
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
heading:
|
|
163
|
+
/* @__PURE__ */ f(c, {
|
|
164
|
+
heading: j.loading ? "Loading campaigns..." : `Campaign Activity (${N.length})`,
|
|
162
165
|
emptyLabel: "No communication campaigns available for sponsor tracking.",
|
|
163
|
-
rows:
|
|
166
|
+
rows: N.map((e) => ({
|
|
164
167
|
id: e.id,
|
|
165
168
|
title: e.title ?? e.name ?? `Campaign ${e.id}`,
|
|
166
169
|
status: e.status
|
|
167
170
|
}))
|
|
168
171
|
}),
|
|
169
|
-
|
|
172
|
+
M ? /* @__PURE__ */ p("div", {
|
|
170
173
|
className: "space-y-3",
|
|
171
|
-
children: [/* @__PURE__ */
|
|
174
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h2", {
|
|
172
175
|
className: "text-lg font-semibold text-text-primary",
|
|
173
176
|
children: "Sponsor messages"
|
|
174
|
-
}), /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ f("p", {
|
|
175
178
|
className: "mt-1 text-sm text-text-secondary",
|
|
176
179
|
children: "Coordinate with this sponsor in a dedicated thread, backed by the conversations service."
|
|
177
|
-
})] }), /* @__PURE__ */
|
|
178
|
-
sponsorId:
|
|
179
|
-
sponsorName:
|
|
180
|
+
})] }), /* @__PURE__ */ f(O, {
|
|
181
|
+
sponsorId: M.id,
|
|
182
|
+
sponsorName: M.name
|
|
180
183
|
})]
|
|
181
184
|
}) : null,
|
|
182
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ f(w, {
|
|
183
186
|
storageKey: "eventfullymanaged-sponsor-details",
|
|
184
187
|
title: "Grow this partnership",
|
|
185
188
|
steps: [
|
|
@@ -187,28 +190,28 @@ function D() {
|
|
|
187
190
|
id: "edit-sponsor",
|
|
188
191
|
label: "Update sponsor details",
|
|
189
192
|
description: "Keep tier, contacts and contract value current.",
|
|
190
|
-
icon: /* @__PURE__ */
|
|
191
|
-
onClick: () =>
|
|
193
|
+
icon: /* @__PURE__ */ f(v, { className: "h-4 w-4" }),
|
|
194
|
+
onClick: () => D(E ? `/sponsors/${E}/edit` : "/sponsors")
|
|
192
195
|
},
|
|
193
196
|
{
|
|
194
197
|
id: "track-leads",
|
|
195
198
|
label: "Track sponsor leads",
|
|
196
199
|
description: "See the leads this sponsor is generating at the event.",
|
|
197
|
-
icon: /* @__PURE__ */
|
|
198
|
-
onClick: () =>
|
|
200
|
+
icon: /* @__PURE__ */ f(y, { className: "h-4 w-4" }),
|
|
201
|
+
onClick: () => D(E ? `/sponsors/${E}/leads` : "/sponsors")
|
|
199
202
|
},
|
|
200
203
|
{
|
|
201
204
|
id: "run-campaign",
|
|
202
205
|
label: "Run a co-branded campaign",
|
|
203
206
|
description: "Promote this sponsor through a communication campaign.",
|
|
204
|
-
icon: /* @__PURE__ */
|
|
205
|
-
onClick: () =>
|
|
207
|
+
icon: /* @__PURE__ */ f(_, { className: "h-4 w-4" }),
|
|
208
|
+
onClick: () => D("/communication")
|
|
206
209
|
}
|
|
207
210
|
]
|
|
208
211
|
})
|
|
209
212
|
]
|
|
210
213
|
});
|
|
211
214
|
}
|
|
212
|
-
export {
|
|
215
|
+
export { A as default };
|
|
213
216
|
|
|
214
217
|
//# sourceMappingURL=SponsorDetailsPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SponsorDetailsPage.js","names":["Badge","Badge$1","SponsorConversation","conversationContext","useMemo","sponsorId","sponsorName","useRegisterPageConversationContext","ContextConversationWidget","compactNumber","SponsorDetailsPage","useParams","useEventfullyManaged","sponsorQuery","useSponsorQuery","id","campaignsQuery","useCommunicationCampaignsQuery","sponsor","campaigns","metrics","value","leads","target","leadsPct","PagePurpose","EmphasisPanel","ResolvedImage","Building2","GradientText","GlassCard","Coins","Magnet","SafeLink","EntityTagsField","EntityListSection","campaign","NextSteps","Pencil","navigate","TrendingUp","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/SponsorDetailsPage.tsx"],"sourcesContent":["import { Building2, Coins, Magnet, Megaphone, Pencil, TrendingUp } from 'lucide-react';\nimport { ContextConversationWidget } from '@burdenoff/fe-libs/shared';\nimport { useRegisterPageConversationContext } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Badge, EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useMemo } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useCommunicationCampaignsQuery, useSponsorQuery } from '../../api/eventApi';\nimport { EntityTagsField } from '../../components/EntityTagsField';\nimport { ResolvedImage } from '../../components/ResolvedImage';\nimport { SafeLink } from '../../components/SafeLink';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { EntityListSection } from './EntityListSection';\n\n/**\n * Sponsor ↔ organizer message thread, backed by wspace-conversations-svc and\n * scoped to this sponsor so the conversation follows the partnership.\n */\nfunction SponsorConversation({ sponsorId, sponsorName }: { sponsorId: string; sponsorName: string }) {\n // Stable reference: `useRegisterPageConversationContext` keys its effect on this\n // object's identity, so a fresh inline object every render would loop the shared\n // PageConversationContextProvider (see NetworkingPage for the full rationale).\n const conversationContext = useMemo(\n () => ({\n entityType: 'EVENTFULLYMANAGED_SPONSOR',\n entityId: sponsorId,\n contextTitle: `Sponsor · ${sponsorName}`,\n }),\n [sponsorId, sponsorName]\n );\n useRegisterPageConversationContext(conversationContext);\n return <ContextConversationWidget widgetKey=\"sponsor-message\" />;\n}\n\ntype CampaignRow = {\n id: string;\n name?: string;\n title?: string;\n status?: string;\n};\n\nconst compactNumber = new Intl.NumberFormat(undefined, { notation: 'compact', maximumFractionDigits: 1 });\n\nexport default function SponsorDetailsPage() {\n const { id = '' } = useParams();\n const { navigate } = useEventfullyManaged();\n const sponsorQuery = useSponsorQuery(id);\n const campaignsQuery = useCommunicationCampaignsQuery({ limit: 100, offset: 0 });\n\n const sponsor = sponsorQuery.data?.sponsor ?? null;\n const campaigns = useMemo(\n () => (campaignsQuery.data?.communicationCampaigns.items ?? []) as CampaignRow[],\n [campaignsQuery.data]\n );\n\n const metrics = (sponsor?.metrics ?? {}) as { value?: number; leads?: number; leadsTarget?: number };\n const value = Number(metrics.value ?? 0);\n const leads = Number(metrics.leads ?? 0);\n const target = Number(metrics.leadsTarget ?? 0);\n const leadsPct = target > 0 ? Math.min(100, Math.round((leads / target) * 100)) : 0;\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n Everything about one sponsor in one place — their tier, contract value, leads, contacts, and the campaigns they\n appear in. Use this to prep for a sponsor conversation, confirm details, or check how their branded campaigns\n are performing.\n </PagePurpose>\n\n <EmphasisPanel>\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n <div className=\"flex items-center gap-4\">\n <span className=\"flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-card border border-border-subtle bg-bg-sunken\">\n {sponsor?.logoUrl ? (\n <ResolvedImage value={sponsor.logoUrl} alt=\"\" className=\"h-full w-full object-cover\" />\n ) : (\n <Building2 className=\"h-6 w-6 text-text-muted\" />\n )}\n </span>\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>{sponsor?.name ?? 'Sponsor'}</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n {sponsorQuery.loading\n ? 'Loading sponsor details...'\n : sponsor\n ? 'Live sponsor profile and partnership metrics.'\n : 'Sponsor not found in current query scope.'}\n </p>\n </div>\n </div>\n {sponsor ? (\n <Badge variant=\"secondary\" className=\"shrink-0 self-start uppercase\">\n {sponsor.level}\n </Badge>\n ) : null}\n </div>\n\n {sponsor ? (\n <div className=\"mt-5 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3\">\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <div className=\"flex items-center gap-2 text-text-secondary\">\n <Coins className=\"h-4 w-4 text-accent-primary\" />\n <p className=\"text-xs font-medium uppercase tracking-wide\">Contract value</p>\n </div>\n <p className=\"mt-1.5 text-2xl font-bold tabular-nums text-text-primary\">${compactNumber.format(value)}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <div className=\"flex items-center gap-2 text-text-secondary\">\n <Magnet className=\"h-4 w-4 text-accent-primary\" />\n <p className=\"text-xs font-medium uppercase tracking-wide\">Leads</p>\n </div>\n <p className=\"mt-1.5 text-2xl font-bold tabular-nums text-text-primary\">{leads.toLocaleString()}</p>\n {target > 0 ? (\n <div className=\"mt-2\">\n <div className=\"h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken\">\n <div\n className=\"h-full rounded-full\"\n style={{\n width: `${leadsPct}%`,\n background: 'linear-gradient(90deg, var(--color-chart-1), var(--color-chart-2))',\n }}\n />\n </div>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {leadsPct}% of {target.toLocaleString()} target\n </p>\n </div>\n ) : null}\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <p className=\"text-xs font-medium uppercase tracking-wide text-text-secondary\">Primary contact</p>\n <p className=\"mt-1.5 truncate font-medium text-text-primary\">{sponsor.contactName ?? 'Unassigned'}</p>\n <p className=\"truncate text-xs text-text-secondary\">{sponsor.contactEmail ?? 'No email'}</p>\n {sponsor.website ? (\n <SafeLink\n href={sponsor.website}\n className=\"mt-1 block truncate text-xs text-text-link hover:underline\"\n fallbackClassName=\"mt-1 block truncate text-xs text-text-secondary\"\n >\n {sponsor.website}\n </SafeLink>\n ) : null}\n </GlassCard>\n </div>\n ) : null}\n </EmphasisPanel>\n\n {sponsor ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-5\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Tags</h2>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Label this sponsor so you can segment your portfolio — for example by industry, tier or renewal status.\n </p>\n <EntityTagsField\n entityType=\"EVENTFULLYMANAGED_SPONSOR\"\n entityId={sponsor.id}\n label=\"Sponsor tags\"\n className=\"mt-3\"\n />\n </GlassCard>\n ) : null}\n\n <EntityListSection\n heading={campaignsQuery.loading ? 'Loading campaigns...' : `Campaign Activity (${campaigns.length})`}\n emptyLabel=\"No communication campaigns available for sponsor tracking.\"\n rows={campaigns.map((campaign) => ({\n id: campaign.id,\n title: campaign.title ?? campaign.name ?? `Campaign ${campaign.id}`,\n status: campaign.status,\n }))}\n />\n\n {sponsor ? (\n <div className=\"space-y-3\">\n <div>\n <h2 className=\"text-lg font-semibold text-text-primary\">Sponsor messages</h2>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Coordinate with this sponsor in a dedicated thread, backed by the conversations service.\n </p>\n </div>\n <SponsorConversation sponsorId={sponsor.id} sponsorName={sponsor.name} />\n </div>\n ) : null}\n\n <NextSteps\n storageKey=\"eventfullymanaged-sponsor-details\"\n title=\"Grow this partnership\"\n steps={[\n {\n id: 'edit-sponsor',\n label: 'Update sponsor details',\n description: 'Keep tier, contacts and contract value current.',\n icon: <Pencil className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/sponsors/${id}/edit` : '/sponsors'),\n },\n {\n id: 'track-leads',\n label: 'Track sponsor leads',\n description: 'See the leads this sponsor is generating at the event.',\n icon: <TrendingUp className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/sponsors/${id}/leads` : '/sponsors'),\n },\n {\n id: 'run-campaign',\n label: 'Run a co-branded campaign',\n description: 'Promote this sponsor through a communication campaign.',\n icon: <Megaphone className=\"h-4 w-4\" />,\n onClick: () => navigate('/communication'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAkBA,SAASE,EAAoB,EAAE,cAAW,kBAA2D;CAInG,IAAMC,IAAsBC,SACnB;EACL,YAAY;EACZ,UAAUC;EACV,cAAc,aAAaC;CAC7B,IACA,CAACD,GAAWC,CAAW,CACzB;CAEA,OADAC,EAAmCJ,CAAmB,GAC/C,kBAACK,GAAD,EAA2B,WAAU,kBAAmB,CAAA;AACjE;AASA,IAAMC,IAAgB,IAAI,KAAK,aAAa,KAAA,GAAW;CAAE,UAAU;CAAW,uBAAuB;AAAE,CAAC;AAExG,SAAwBC,IAAqB;CAC3C,IAAM,EAAE,QAAK,OAAOC,EAAU,GACxB,EAAE,gBAAaC,EAAqB,GACpCC,IAAeC,EAAgBC,CAAE,GACjCC,IAAiBC,EAA+B;EAAE,OAAO;EAAK,QAAQ;CAAE,CAAC,GAEzEC,IAAUL,EAAa,MAAM,WAAW,MACxCM,IAAYf,QACTY,EAAe,MAAM,uBAAuB,SAAS,CAAC,GAC7D,CAACA,EAAe,IAAI,CACtB,GAEMI,IAAWF,GAAS,WAAW,CAAC,GAChCG,IAAQ,OAAOD,EAAQ,SAAS,CAAC,GACjCE,IAAQ,OAAOF,EAAQ,SAAS,CAAC,GACjCG,IAAS,OAAOH,EAAQ,eAAe,CAAC,GACxCI,IAAWD,IAAS,IAAI,KAAK,IAAI,KAAK,KAAK,MAAOD,IAAQC,IAAU,GAAG,CAAC,IAAI;CAElF,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAACE,GAAD,EAAA,UAAa,gPAIA,CAAA;GAEb,kBAACC,GAAD,EAAA,UAAA,CACE,kBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACE,kBAAC,QAA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AU;IAAf,UAAA,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;KAA0C,UAAA;IAAoB,CAAA,GAC5E,kBAAC,KAAD;KAAG,WAAU;KAAmC,UAAA;IAE7C,CAAA,CACA,EAAA,CAAA,GACL,kBAAChB,GAAD;KAAqB,WAAWgB,EAAQ;KAAI,aAAaA,EAAQ;IAAO,CAAA,CACrE;GACH,CAAA,IAAA;GAEJ,kBAACmB,GAAD;IACE,YAAW;IACX,OAAM;IACN,OAAO;KACL;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACC,GAAD,EAAQ,WAAU,UAAW,CAAA;MACnC,eAAeC,EAASxB,IAAK,aAAaA,EAAG,SAAS,WAAW;KACnE;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACyB,GAAD,EAAY,WAAU,UAAW,CAAA;MACvC,eAAeD,EAASxB,IAAK,aAAaA,EAAG,UAAU,WAAW;KACpE;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAC0B,GAAD,EAAW,WAAU,UAAW,CAAA;MACtC,eAAeF,EAAS,gBAAgB;KAC1C;IACF;GACD,CAAA;EACE;;AAET"}
|
|
1
|
+
{"version":3,"file":"SponsorDetailsPage.js","names":["Badge","Badge$1","SponsorConversation","conversationContext","useMemo","sponsorId","sponsorName","useRegisterPageConversationContext","ContextConversationWidget","compactNumber","SponsorDetailsPage","useParams","useEventfullyManaged","sponsorQuery","useSponsorQuery","id","campaignsQuery","useCommunicationCampaignsQuery","sponsor","registerBreadcrumbName","unregisterBreadcrumbName","campaigns","metrics","value","leads","target","leadsPct","PagePurpose","EmphasisPanel","ResolvedImage","Building2","GradientText","GlassCard","Coins","Magnet","SafeLink","EntityTagsField","EntityListSection","campaign","NextSteps","Pencil","navigate","TrendingUp","Megaphone"],"sources":["../../../../src/eventfullymanaged/pages/modules/SponsorDetailsPage.tsx"],"sourcesContent":["import { Building2, Coins, Magnet, Megaphone, Pencil, TrendingUp } from 'lucide-react';\nimport { ContextConversationWidget } from '@burdenoff/fe-libs/shared';\nimport { useRegisterPageConversationContext } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Badge, EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useEffect, useMemo } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useCommunicationCampaignsQuery, useSponsorQuery } from '../../api/eventApi';\nimport { EntityTagsField } from '../../components/EntityTagsField';\nimport { ResolvedImage } from '../../components/ResolvedImage';\nimport { SafeLink } from '../../components/SafeLink';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { registerBreadcrumbName, unregisterBreadcrumbName } from '../../utils/breadcrumbRegistry';\nimport { EntityListSection } from './EntityListSection';\n\n/**\n * Sponsor ↔ organizer message thread, backed by wspace-conversations-svc and\n * scoped to this sponsor so the conversation follows the partnership.\n */\nfunction SponsorConversation({ sponsorId, sponsorName }: { sponsorId: string; sponsorName: string }) {\n // Stable reference: `useRegisterPageConversationContext` keys its effect on this\n // object's identity, so a fresh inline object every render would loop the shared\n // PageConversationContextProvider (see NetworkingPage for the full rationale).\n const conversationContext = useMemo(\n () => ({\n entityType: 'EVENTFULLYMANAGED_SPONSOR',\n entityId: sponsorId,\n contextTitle: `Sponsor · ${sponsorName}`,\n }),\n [sponsorId, sponsorName]\n );\n useRegisterPageConversationContext(conversationContext);\n return <ContextConversationWidget widgetKey=\"sponsor-message\" />;\n}\n\ntype CampaignRow = {\n id: string;\n name?: string;\n title?: string;\n status?: string;\n};\n\nconst compactNumber = new Intl.NumberFormat(undefined, { notation: 'compact', maximumFractionDigits: 1 });\n\nexport default function SponsorDetailsPage() {\n const { id = '' } = useParams();\n const { navigate } = useEventfullyManaged();\n const sponsorQuery = useSponsorQuery(id);\n const campaignsQuery = useCommunicationCampaignsQuery({ limit: 100, offset: 0 });\n\n const sponsor = sponsorQuery.data?.sponsor ?? null;\n\n useEffect(() => {\n registerBreadcrumbName(id, sponsor?.name);\n return () => unregisterBreadcrumbName(id);\n }, [id, sponsor?.name]);\n\n const campaigns = useMemo(\n () => (campaignsQuery.data?.communicationCampaigns.items ?? []) as CampaignRow[],\n [campaignsQuery.data]\n );\n\n const metrics = (sponsor?.metrics ?? {}) as { value?: number; leads?: number; leadsTarget?: number };\n const value = Number(metrics.value ?? 0);\n const leads = Number(metrics.leads ?? 0);\n const target = Number(metrics.leadsTarget ?? 0);\n const leadsPct = target > 0 ? Math.min(100, Math.round((leads / target) * 100)) : 0;\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n Everything about one sponsor in one place — their tier, contract value, leads, contacts, and the campaigns they\n appear in. Use this to prep for a sponsor conversation, confirm details, or check how their branded campaigns\n are performing.\n </PagePurpose>\n\n <EmphasisPanel>\n <div className=\"flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between\">\n <div className=\"flex items-center gap-4\">\n <span className=\"flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-card border border-border-subtle bg-bg-sunken\">\n {sponsor?.logoUrl ? (\n <ResolvedImage value={sponsor.logoUrl} alt=\"\" className=\"h-full w-full object-cover\" />\n ) : (\n <Building2 className=\"h-6 w-6 text-text-muted\" />\n )}\n </span>\n <div>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>{sponsor?.name ?? 'Sponsor'}</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n {sponsorQuery.loading\n ? 'Loading sponsor details...'\n : sponsor\n ? 'Live sponsor profile and partnership metrics.'\n : 'Sponsor not found in current query scope.'}\n </p>\n </div>\n </div>\n {sponsor ? (\n <Badge variant=\"secondary\" className=\"shrink-0 self-start uppercase\">\n {sponsor.level}\n </Badge>\n ) : null}\n </div>\n\n {sponsor ? (\n <div className=\"mt-5 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3\">\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <div className=\"flex items-center gap-2 text-text-secondary\">\n <Coins className=\"h-4 w-4 text-accent-primary\" />\n <p className=\"text-xs font-medium uppercase tracking-wide\">Contract value</p>\n </div>\n <p className=\"mt-1.5 text-2xl font-bold tabular-nums text-text-primary\">${compactNumber.format(value)}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <div className=\"flex items-center gap-2 text-text-secondary\">\n <Magnet className=\"h-4 w-4 text-accent-primary\" />\n <p className=\"text-xs font-medium uppercase tracking-wide\">Leads</p>\n </div>\n <p className=\"mt-1.5 text-2xl font-bold tabular-nums text-text-primary\">{leads.toLocaleString()}</p>\n {target > 0 ? (\n <div className=\"mt-2\">\n <div className=\"h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken\">\n <div\n className=\"h-full rounded-full\"\n style={{\n width: `${leadsPct}%`,\n background: 'linear-gradient(90deg, var(--color-chart-1), var(--color-chart-2))',\n }}\n />\n </div>\n <p className=\"mt-1 text-xs text-text-secondary\">\n {leadsPct}% of {target.toLocaleString()} target\n </p>\n </div>\n ) : null}\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-4\">\n <p className=\"text-xs font-medium uppercase tracking-wide text-text-secondary\">Primary contact</p>\n <p className=\"mt-1.5 truncate font-medium text-text-primary\">{sponsor.contactName ?? 'Unassigned'}</p>\n <p className=\"truncate text-xs text-text-secondary\">{sponsor.contactEmail ?? 'No email'}</p>\n {sponsor.website ? (\n <SafeLink\n href={sponsor.website}\n className=\"mt-1 block truncate text-xs text-text-link hover:underline\"\n fallbackClassName=\"mt-1 block truncate text-xs text-text-secondary\"\n >\n {sponsor.website}\n </SafeLink>\n ) : null}\n </GlassCard>\n </div>\n ) : null}\n </EmphasisPanel>\n\n {sponsor ? (\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-5\">\n <h2 className=\"text-lg font-semibold text-text-primary\">Tags</h2>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Label this sponsor so you can segment your portfolio — for example by industry, tier or renewal status.\n </p>\n <EntityTagsField\n entityType=\"EVENTFULLYMANAGED_SPONSOR\"\n entityId={sponsor.id}\n label=\"Sponsor tags\"\n className=\"mt-3\"\n />\n </GlassCard>\n ) : null}\n\n <EntityListSection\n heading={campaignsQuery.loading ? 'Loading campaigns...' : `Campaign Activity (${campaigns.length})`}\n emptyLabel=\"No communication campaigns available for sponsor tracking.\"\n rows={campaigns.map((campaign) => ({\n id: campaign.id,\n title: campaign.title ?? campaign.name ?? `Campaign ${campaign.id}`,\n status: campaign.status,\n }))}\n />\n\n {sponsor ? (\n <div className=\"space-y-3\">\n <div>\n <h2 className=\"text-lg font-semibold text-text-primary\">Sponsor messages</h2>\n <p className=\"mt-1 text-sm text-text-secondary\">\n Coordinate with this sponsor in a dedicated thread, backed by the conversations service.\n </p>\n </div>\n <SponsorConversation sponsorId={sponsor.id} sponsorName={sponsor.name} />\n </div>\n ) : null}\n\n <NextSteps\n storageKey=\"eventfullymanaged-sponsor-details\"\n title=\"Grow this partnership\"\n steps={[\n {\n id: 'edit-sponsor',\n label: 'Update sponsor details',\n description: 'Keep tier, contacts and contract value current.',\n icon: <Pencil className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/sponsors/${id}/edit` : '/sponsors'),\n },\n {\n id: 'track-leads',\n label: 'Track sponsor leads',\n description: 'See the leads this sponsor is generating at the event.',\n icon: <TrendingUp className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/sponsors/${id}/leads` : '/sponsors'),\n },\n {\n id: 'run-campaign',\n label: 'Run a co-branded campaign',\n description: 'Promote this sponsor through a communication campaign.',\n icon: <Megaphone className=\"h-4 w-4\" />,\n onClick: () => navigate('/communication'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAmBA,SAASE,EAAoB,EAAE,cAAW,kBAA2D;CAInG,IAAMC,IAAsBC,SACnB;EACL,YAAY;EACZ,UAAUC;EACV,cAAc,aAAaC;CAC7B,IACA,CAACD,GAAWC,CAAW,C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