@burdenoff/microfe-eventfullymanaged 2026.1102.4 → 2026.1102.5
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/components/ImageUploadField.d.ts +7 -5
- package/dist/eventfullymanaged/components/ImageUploadField.d.ts.map +1 -1
- package/dist/eventfullymanaged/components/ImageUploadField.js +39 -48
- package/dist/eventfullymanaged/components/ImageUploadField.js.map +1 -1
- package/dist/eventfullymanaged/components/ResolvedImage.d.ts +16 -0
- package/dist/eventfullymanaged/components/ResolvedImage.d.ts.map +1 -0
- package/dist/eventfullymanaged/components/ResolvedImage.js +18 -0
- package/dist/eventfullymanaged/components/ResolvedImage.js.map +1 -0
- package/dist/eventfullymanaged/hooks/useResolvedImageUrl.d.ts +44 -0
- package/dist/eventfullymanaged/hooks/useResolvedImageUrl.d.ts.map +1 -0
- package/dist/eventfullymanaged/hooks/useResolvedImageUrl.js +106 -0
- package/dist/eventfullymanaged/hooks/useResolvedImageUrl.js.map +1 -0
- package/dist/eventfullymanaged/lib/fileRef.d.ts +25 -0
- package/dist/eventfullymanaged/lib/fileRef.d.ts.map +1 -0
- package/dist/eventfullymanaged/lib/fileRef.js +15 -0
- package/dist/eventfullymanaged/lib/fileRef.js.map +1 -0
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +81 -80
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +1 -1
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +73 -73
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +97 -96
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +173 -134
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.d.ts.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +96 -94
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/useQuery.js.map +1 -1
- package/dist/node_modules/@apollo/client/react/hooks/useSyncExternalStore.js.map +1 -1
- package/dist/utils/pageContext.js +1 -1
- package/package.json +1 -1
|
@@ -1,184 +1,185 @@
|
|
|
1
1
|
import { useCommunicationCampaignsQuery as e, useSponsorQuery as t } from "../../api/eventApi.js";
|
|
2
2
|
import { EntityTagsField as n } from "../../components/EntityTagsField.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
3
|
+
import { ResolvedImage as r } from "../../components/ResolvedImage.js";
|
|
4
|
+
import { SafeLink as i } from "../../components/SafeLink.js";
|
|
5
|
+
import { useEventfullyManaged as a } from "../../context/EventfullyManagedContext.js";
|
|
6
|
+
import { EntityListSection as o } from "./EntityListSection.js";
|
|
7
|
+
import { useMemo as s } from "react";
|
|
8
|
+
import { useParams as c } from "react-router";
|
|
9
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { Building2 as d, Coins as f, Magnet as p, Megaphone as m, Pencil as h, TrendingUp as g } from "lucide-react";
|
|
11
|
+
import { Badge as _, EmphasisPanel as v, GlassCard as y, GradientText as b, NextSteps as x, PagePurpose as S } from "@burdenoff/fe-libs/ui";
|
|
12
|
+
import { ContextConversationWidget as C } from "@burdenoff/fe-libs/shared";
|
|
13
|
+
import { useRegisterPageConversationContext as w } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
13
14
|
// src/eventfullymanaged/pages/modules/SponsorDetailsPage.tsx
|
|
14
|
-
function
|
|
15
|
-
let n =
|
|
15
|
+
function T({ sponsorId: e, sponsorName: t }) {
|
|
16
|
+
let n = s(() => ({
|
|
16
17
|
entityType: "EVENTFULLYMANAGED_SPONSOR",
|
|
17
18
|
entityId: e,
|
|
18
19
|
contextTitle: `Sponsor · ${t}`
|
|
19
20
|
}), [e, t]);
|
|
20
|
-
return
|
|
21
|
+
return w(n), /* @__PURE__ */ l(C, { widgetKey: "sponsor-message" });
|
|
21
22
|
}
|
|
22
|
-
var
|
|
23
|
+
var E = new Intl.NumberFormat(void 0, {
|
|
23
24
|
notation: "compact",
|
|
24
25
|
maximumFractionDigits: 1
|
|
25
26
|
});
|
|
26
|
-
function
|
|
27
|
-
let { id:
|
|
27
|
+
function D() {
|
|
28
|
+
let { id: C = "" } = c(), { navigate: w } = a(), D = t(C), O = e({
|
|
28
29
|
limit: 100,
|
|
29
30
|
offset: 0
|
|
30
|
-
}),
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
}), k = D.data?.sponsor ?? null, A = s(() => O.data?.communicationCampaigns.items ?? [], [O.data]), j = k?.metrics ?? {}, M = Number(j.value ?? 0), N = Number(j.leads ?? 0), P = Number(j.leadsTarget ?? 0), F = P > 0 ? Math.min(100, Math.round(N / P * 100)) : 0;
|
|
32
|
+
return /* @__PURE__ */ u("div", {
|
|
32
33
|
className: "space-y-6 p-6",
|
|
33
34
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ l(S, { 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." }),
|
|
36
|
+
/* @__PURE__ */ u(v, { children: [/* @__PURE__ */ u("div", {
|
|
36
37
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
37
|
-
children: [/* @__PURE__ */
|
|
38
|
+
children: [/* @__PURE__ */ u("div", {
|
|
38
39
|
className: "flex items-center gap-4",
|
|
39
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ l("span", {
|
|
40
41
|
className: "flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-card border border-border-subtle bg-bg-sunken",
|
|
41
|
-
children:
|
|
42
|
-
|
|
42
|
+
children: k?.logoUrl ? /* @__PURE__ */ l(r, {
|
|
43
|
+
value: k.logoUrl,
|
|
43
44
|
alt: "",
|
|
44
45
|
className: "h-full w-full object-cover"
|
|
45
|
-
}) : /* @__PURE__ */
|
|
46
|
-
}), /* @__PURE__ */
|
|
46
|
+
}) : /* @__PURE__ */ l(d, { className: "h-6 w-6 text-text-muted" })
|
|
47
|
+
}), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("h1", {
|
|
47
48
|
className: "text-2xl font-bold text-text-primary",
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
}), /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ l(b, { children: k?.name ?? "Sponsor" })
|
|
50
|
+
}), /* @__PURE__ */ l("p", {
|
|
50
51
|
className: "mt-1 text-sm text-text-secondary",
|
|
51
|
-
children:
|
|
52
|
+
children: D.loading ? "Loading sponsor details..." : k ? "Live sponsor profile and partnership metrics." : "Sponsor not found in current query scope."
|
|
52
53
|
})] })]
|
|
53
|
-
}),
|
|
54
|
+
}), k ? /* @__PURE__ */ l(_, {
|
|
54
55
|
variant: "secondary",
|
|
55
56
|
className: "shrink-0 self-start uppercase",
|
|
56
|
-
children:
|
|
57
|
+
children: k.level
|
|
57
58
|
}) : null]
|
|
58
|
-
}),
|
|
59
|
+
}), k ? /* @__PURE__ */ u("div", {
|
|
59
60
|
className: "mt-5 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
60
61
|
children: [
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ u(y, {
|
|
62
63
|
treatment: "metric",
|
|
63
64
|
className: "p-4",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ u("div", {
|
|
65
66
|
className: "flex items-center gap-2 text-text-secondary",
|
|
66
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ l(f, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ l("p", {
|
|
67
68
|
className: "text-xs font-medium uppercase tracking-wide",
|
|
68
69
|
children: "Contract value"
|
|
69
70
|
})]
|
|
70
|
-
}), /* @__PURE__ */
|
|
71
|
+
}), /* @__PURE__ */ u("p", {
|
|
71
72
|
className: "mt-1.5 text-2xl font-bold tabular-nums text-text-primary",
|
|
72
|
-
children: ["$",
|
|
73
|
+
children: ["$", E.format(M)]
|
|
73
74
|
})]
|
|
74
75
|
}),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ u(y, {
|
|
76
77
|
treatment: "metric",
|
|
77
78
|
className: "p-4",
|
|
78
79
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ u("div", {
|
|
80
81
|
className: "flex items-center gap-2 text-text-secondary",
|
|
81
|
-
children: [/* @__PURE__ */
|
|
82
|
+
children: [/* @__PURE__ */ l(p, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ l("p", {
|
|
82
83
|
className: "text-xs font-medium uppercase tracking-wide",
|
|
83
84
|
children: "Leads"
|
|
84
85
|
})]
|
|
85
86
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ l("p", {
|
|
87
88
|
className: "mt-1.5 text-2xl font-bold tabular-nums text-text-primary",
|
|
88
|
-
children:
|
|
89
|
+
children: N.toLocaleString()
|
|
89
90
|
}),
|
|
90
|
-
|
|
91
|
+
P > 0 ? /* @__PURE__ */ u("div", {
|
|
91
92
|
className: "mt-2",
|
|
92
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ l("div", {
|
|
93
94
|
className: "h-1.5 w-full overflow-hidden rounded-full bg-bg-sunken",
|
|
94
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ l("div", {
|
|
95
96
|
className: "h-full rounded-full",
|
|
96
97
|
style: {
|
|
97
|
-
width: `${
|
|
98
|
+
width: `${F}%`,
|
|
98
99
|
background: "linear-gradient(90deg, var(--color-chart-1), var(--color-chart-2))"
|
|
99
100
|
}
|
|
100
101
|
})
|
|
101
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ u("p", {
|
|
102
103
|
className: "mt-1 text-xs text-text-secondary",
|
|
103
104
|
children: [
|
|
104
|
-
|
|
105
|
+
F,
|
|
105
106
|
"% of ",
|
|
106
|
-
|
|
107
|
+
P.toLocaleString(),
|
|
107
108
|
" target"
|
|
108
109
|
]
|
|
109
110
|
})]
|
|
110
111
|
}) : null
|
|
111
112
|
]
|
|
112
113
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ u(y, {
|
|
114
115
|
treatment: "metric",
|
|
115
116
|
className: "p-4",
|
|
116
117
|
children: [
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ l("p", {
|
|
118
119
|
className: "text-xs font-medium uppercase tracking-wide text-text-secondary",
|
|
119
120
|
children: "Primary contact"
|
|
120
121
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ l("p", {
|
|
122
123
|
className: "mt-1.5 truncate font-medium text-text-primary",
|
|
123
|
-
children:
|
|
124
|
+
children: k.contactName ?? "Unassigned"
|
|
124
125
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ l("p", {
|
|
126
127
|
className: "truncate text-xs text-text-secondary",
|
|
127
|
-
children:
|
|
128
|
+
children: k.contactEmail ?? "No email"
|
|
128
129
|
}),
|
|
129
|
-
|
|
130
|
-
href:
|
|
130
|
+
k.website ? /* @__PURE__ */ l(i, {
|
|
131
|
+
href: k.website,
|
|
131
132
|
className: "mt-1 block truncate text-xs text-text-link hover:underline",
|
|
132
133
|
fallbackClassName: "mt-1 block truncate text-xs text-text-secondary",
|
|
133
|
-
children:
|
|
134
|
+
children: k.website
|
|
134
135
|
}) : null
|
|
135
136
|
]
|
|
136
137
|
})
|
|
137
138
|
]
|
|
138
139
|
}) : null] }),
|
|
139
|
-
|
|
140
|
+
k ? /* @__PURE__ */ u(y, {
|
|
140
141
|
treatment: "plain",
|
|
141
142
|
className: "border-border-seam p-5",
|
|
142
143
|
children: [
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ l("h2", {
|
|
144
145
|
className: "text-lg font-semibold text-text-primary",
|
|
145
146
|
children: "Tags"
|
|
146
147
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ l("p", {
|
|
148
149
|
className: "mt-1 text-sm text-text-secondary",
|
|
149
150
|
children: "Label this sponsor so you can segment your portfolio — for example by industry, tier or renewal status."
|
|
150
151
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ l(n, {
|
|
152
153
|
entityType: "EVENTFULLYMANAGED_SPONSOR",
|
|
153
|
-
entityId:
|
|
154
|
+
entityId: k.id,
|
|
154
155
|
label: "Sponsor tags",
|
|
155
156
|
className: "mt-3"
|
|
156
157
|
})
|
|
157
158
|
]
|
|
158
159
|
}) : null,
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
heading:
|
|
160
|
+
/* @__PURE__ */ l(o, {
|
|
161
|
+
heading: O.loading ? "Loading campaigns..." : `Campaign Activity (${A.length})`,
|
|
161
162
|
emptyLabel: "No communication campaigns available for sponsor tracking.",
|
|
162
|
-
rows:
|
|
163
|
+
rows: A.map((e) => ({
|
|
163
164
|
id: e.id,
|
|
164
165
|
title: e.title ?? e.name ?? `Campaign ${e.id}`,
|
|
165
166
|
status: e.status
|
|
166
167
|
}))
|
|
167
168
|
}),
|
|
168
|
-
|
|
169
|
+
k ? /* @__PURE__ */ u("div", {
|
|
169
170
|
className: "space-y-3",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("h2", {
|
|
171
172
|
className: "text-lg font-semibold text-text-primary",
|
|
172
173
|
children: "Sponsor messages"
|
|
173
|
-
}), /* @__PURE__ */
|
|
174
|
+
}), /* @__PURE__ */ l("p", {
|
|
174
175
|
className: "mt-1 text-sm text-text-secondary",
|
|
175
176
|
children: "Coordinate with this sponsor in a dedicated thread, backed by the conversations service."
|
|
176
|
-
})] }), /* @__PURE__ */
|
|
177
|
-
sponsorId:
|
|
178
|
-
sponsorName:
|
|
177
|
+
})] }), /* @__PURE__ */ l(T, {
|
|
178
|
+
sponsorId: k.id,
|
|
179
|
+
sponsorName: k.name
|
|
179
180
|
})]
|
|
180
181
|
}) : null,
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ l(x, {
|
|
182
183
|
storageKey: "eventfullymanaged-sponsor-details",
|
|
183
184
|
title: "Grow this partnership",
|
|
184
185
|
steps: [
|
|
@@ -186,28 +187,28 @@ function E() {
|
|
|
186
187
|
id: "edit-sponsor",
|
|
187
188
|
label: "Update sponsor details",
|
|
188
189
|
description: "Keep tier, contacts and contract value current.",
|
|
189
|
-
icon: /* @__PURE__ */
|
|
190
|
-
onClick: () => C
|
|
190
|
+
icon: /* @__PURE__ */ l(h, { className: "h-4 w-4" }),
|
|
191
|
+
onClick: () => w(C ? `/sponsors/${C}/edit` : "/sponsors")
|
|
191
192
|
},
|
|
192
193
|
{
|
|
193
194
|
id: "track-leads",
|
|
194
195
|
label: "Track sponsor leads",
|
|
195
196
|
description: "See the leads this sponsor is generating at the event.",
|
|
196
|
-
icon: /* @__PURE__ */
|
|
197
|
-
onClick: () => C
|
|
197
|
+
icon: /* @__PURE__ */ l(g, { className: "h-4 w-4" }),
|
|
198
|
+
onClick: () => w(C ? `/sponsors/${C}/leads` : "/sponsors")
|
|
198
199
|
},
|
|
199
200
|
{
|
|
200
201
|
id: "run-campaign",
|
|
201
202
|
label: "Run a co-branded campaign",
|
|
202
203
|
description: "Promote this sponsor through a communication campaign.",
|
|
203
|
-
icon: /* @__PURE__ */
|
|
204
|
-
onClick: () =>
|
|
204
|
+
icon: /* @__PURE__ */ l(m, { className: "h-4 w-4" }),
|
|
205
|
+
onClick: () => w("/communication")
|
|
205
206
|
}
|
|
206
207
|
]
|
|
207
208
|
})
|
|
208
209
|
]
|
|
209
210
|
});
|
|
210
211
|
}
|
|
211
|
-
export {
|
|
212
|
+
export { D as default };
|
|
212
213
|
|
|
213
214
|
//# 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","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 { 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 <img src={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":";;;;;;;;;;;;;AAiBA,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,Q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AI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACyB,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","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,kBA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AOA,EAAS,SAASA,EAAS,QAAQ,YAAYA,EAAS;KAC/D,QAAQA,EAAS;IACnB,EAAE;GACH,CAAA;GAEAlB,IACC,kBAAC,OAAD;IAAK,WAAU;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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueResourcesPage.js","names":["VenueResourcesPage","useParams","useEventfullyManaged","venueQuery","useVenueQuery","id","venue","floorPlans","useMemo","PagePurpose","EmphasisPanel","GradientText","GlassCard","EntityListSection","floorPlan","amenity","NextSteps","Building2","navigate","SquareStack","Map"],"sources":["../../../../src/eventfullymanaged/pages/modules/VenueResourcesPage.tsx"],"sourcesContent":["import { Building2, Map, SquareStack } from 'lucide-react';\nimport { EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useMemo } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useVenueQuery } from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { EntityListSection } from './EntityListSection';\n\ntype FloorPlanRow = {\n id: string;\n name: string;\n imageUrl?: string | null;\n};\n\nexport default function VenueResourcesPage() {\n const { id = '' } = useParams();\n const { navigate } = useEventfullyManaged();\n const venueQuery = useVenueQuery(id);\n const venue = venueQuery.data?.venue;\n const floorPlans = useMemo(() => (venueQuery.data?.floorPlans.items ?? []) as FloorPlanRow[], [venueQuery.data]);\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n A capacity-and-layout view of a single venue. It rolls up the practical resources you need to run an event in\n this space — how many people fit, what amenities are on offer, and which floor plans are mapped. Use it when\n deciding whether a venue can host your event and what still needs setting up.\n </PagePurpose>\n\n <EmphasisPanel>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Venue</GradientText> Resources\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n {venueQuery.loading\n ? 'Loading venue resources...'\n : `Resource view for ${venue?.name ?? 'selected venue'} from live backend data.`}\n </p>\n <div className=\"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4\">\n <GlassCard treatment=\"glass\" glow className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Status</p>\n <p className=\"mt-1 font-medium text-text-primary\">{venue?.status ?? 'unknown'}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Capacity</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.capacity?.toLocaleString() ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Amenities</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.amenities.length ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Floor Plans</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{floorPlans.length}</p>\n </GlassCard>\n </div>\n </EmphasisPanel>\n\n <EntityListSection\n heading={venueQuery.loading ? 'Loading floor plans...' : `Floor Plans (${floorPlans.length})`}\n emptyLabel=\"No floor plans configured for this venue.\"\n emptyIllustration=\"empty-files\"\n rows={floorPlans.map((floorPlan) => ({\n id: floorPlan.id,\n title: floorPlan.name,\n subtitle: floorPlan.imageUrl
|
|
1
|
+
{"version":3,"file":"VenueResourcesPage.js","names":["VenueResourcesPage","useParams","useEventfullyManaged","venueQuery","useVenueQuery","id","venue","floorPlans","useMemo","PagePurpose","EmphasisPanel","GradientText","GlassCard","EntityListSection","floorPlan","amenity","NextSteps","Building2","navigate","SquareStack","Map"],"sources":["../../../../src/eventfullymanaged/pages/modules/VenueResourcesPage.tsx"],"sourcesContent":["import { Building2, Map, SquareStack } from 'lucide-react';\nimport { EmphasisPanel, GlassCard, GradientText, NextSteps, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useMemo } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useVenueQuery } from '../../api/eventApi';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { EntityListSection } from './EntityListSection';\n\ntype FloorPlanRow = {\n id: string;\n name: string;\n imageUrl?: string | null;\n};\n\nexport default function VenueResourcesPage() {\n const { id = '' } = useParams();\n const { navigate } = useEventfullyManaged();\n const venueQuery = useVenueQuery(id);\n const venue = venueQuery.data?.venue;\n const floorPlans = useMemo(() => (venueQuery.data?.floorPlans.items ?? []) as FloorPlanRow[], [venueQuery.data]);\n\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>\n A capacity-and-layout view of a single venue. It rolls up the practical resources you need to run an event in\n this space — how many people fit, what amenities are on offer, and which floor plans are mapped. Use it when\n deciding whether a venue can host your event and what still needs setting up.\n </PagePurpose>\n\n <EmphasisPanel>\n <h1 className=\"text-2xl font-bold text-text-primary\">\n <GradientText>Venue</GradientText> Resources\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">\n {venueQuery.loading\n ? 'Loading venue resources...'\n : `Resource view for ${venue?.name ?? 'selected venue'} from live backend data.`}\n </p>\n <div className=\"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4\">\n <GlassCard treatment=\"glass\" glow className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Status</p>\n <p className=\"mt-1 font-medium text-text-primary\">{venue?.status ?? 'unknown'}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Capacity</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.capacity?.toLocaleString() ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Amenities</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{venue?.amenities.length ?? 0}</p>\n </GlassCard>\n <GlassCard treatment=\"metric\" className=\"p-3\">\n <p className=\"text-xs uppercase tracking-wide text-text-secondary\">Floor Plans</p>\n <p className=\"mt-1 font-medium tabular-nums text-text-primary\">{floorPlans.length}</p>\n </GlassCard>\n </div>\n </EmphasisPanel>\n\n <EntityListSection\n heading={venueQuery.loading ? 'Loading floor plans...' : `Floor Plans (${floorPlans.length})`}\n emptyLabel=\"No floor plans configured for this venue.\"\n emptyIllustration=\"empty-files\"\n rows={floorPlans.map((floorPlan) => ({\n id: floorPlan.id,\n title: floorPlan.name,\n subtitle: floorPlan.imageUrl ? 'Map attached' : 'No image yet',\n }))}\n />\n\n <EntityListSection\n heading=\"Amenities\"\n emptyLabel=\"No amenities listed.\"\n rows={(venue?.amenities ?? []).map((amenity) => ({\n id: amenity,\n title: amenity,\n }))}\n />\n\n <NextSteps\n storageKey=\"eventfullymanaged-venue-resources\"\n title=\"Get this venue event-ready\"\n steps={[\n {\n id: 'venue-detail',\n label: 'Open venue details',\n description: 'Edit capacity, address, status and amenities.',\n icon: <Building2 className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/venues/${id}` : '/venues'),\n },\n {\n id: 'manage-floor-plans',\n label: 'Manage floor plans',\n description: 'Add or update layouts so attendees can find their way.',\n icon: <SquareStack className=\"h-4 w-4\" />,\n onClick: () => navigate(id ? `/venues/${id}/floor-plans` : '/venues'),\n },\n {\n id: 'all-venues',\n label: 'Compare with other venues',\n description: 'Browse the full venue list to pick the best fit.',\n icon: <Map className=\"h-4 w-4\" />,\n onClick: () => navigate('/venues'),\n },\n ]}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAeA,SAAwBA,IAAqB;CAC3C,IAAM,EAAE,QAAK,OAAOC,EAAU,GACxB,EAAE,gBAAaC,EAAqB,GACpCC,IAAaC,EAAcC,CAAE,GAC7BC,IAAQH,EAAW,MAAM,OACzBI,IAAaC,QAAeL,EAAW,MAAM,WAAW,SAAS,CAAC,GAAsB,CAACA,EAAW,IAAI,CAAC;CAE/G,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAACM,GAAD,EAAA,UAAa,2SAIA,CAAA;GAEb,kBAACC,GAAD,EAAA,UAAA;IACE,kBAAC,MAAD;KAAI,WAAU;KAAd,UAAA,CACE,kBAACC,GAAD,EAAA,UAAc,QAAmB,CAAA,GAAC,YAChC;;IACJ,kBAAC,KAAD;KAAG,WAAU;KACV,UAAAR,EAAW,UACR,+BACA,qBAAqBG,GAAO,QAAQ,iBAAiB;IACxD,CAAA;IACH,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA;MACE,kBAACM,GAAD;OAAW,WAAU;OAAQ,MAAA;OAAK,WAAU;OAA5C,UAAA,CACE,kBAAC,KAAD;QAAG,WAAU;QAAsD,UAAA;OAAS,CAAA,GA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1D;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACc,GAAD,EAAa,WAAU,UAAW,CAAA;MACxC,eAAeD,EAASb,IAAK,WAAWA,EAAG,gBAAgB,SAAS;KACtE;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACe,GAAD,EAAK,WAAU,UAAW,CAAA;MAChC,eAAeF,EAAS,SAAS;KACnC;IACF;GACD,CAAA;EACE;;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpeakersPage.d.ts","sourceRoot":"","sources":["../../../../src/eventfullymanaged/pages/speakers/SpeakersPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SpeakersPage.d.ts","sourceRoot":"","sources":["../../../../src/eventfullymanaged/pages/speakers/SpeakersPage.tsx"],"names":[],"mappings":"AA2HA,MAAM,CAAC,OAAO,UAAU,YAAY,gCA+JnC"}
|