@burdenoff/microfe-eventfullymanaged 2026.1123.6 → 2026.1124.2
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/EventfullyManagedRoutes.js +58 -54
- package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
- package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
- package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
- package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
- package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
- package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
- package/dist/eventfullymanaged/components/Pagination.js +7 -7
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +264 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.d.ts +4 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js +31 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.d.ts +6 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js +76 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +271 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
- package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
- package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
- package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +468 -0
- package/dist/generated/wspace-operations.js +215 -11
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +30060 -1503
- package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
- package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
- package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
- package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
- package/dist/utils/pageContext.js +5 -0
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Badge as n, EmphasisPanel as r, GlassCard as i, GradientText as a, PagePurpose as o } from "@burdenoff/fe-libs/ui";
|
|
3
|
+
import { CircleDot as s, Clock as c, Compass as l, Sparkles as u } from "lucide-react";
|
|
4
4
|
// src/eventfullymanaged/pages/modules/RoadmapPanel.tsx
|
|
5
5
|
var d = {
|
|
6
6
|
exploring: {
|
|
7
7
|
label: "Exploring",
|
|
8
8
|
variant: "secondary",
|
|
9
|
-
Icon:
|
|
9
|
+
Icon: l
|
|
10
10
|
},
|
|
11
11
|
planned: {
|
|
12
12
|
label: "Planned",
|
|
13
13
|
variant: "info",
|
|
14
|
-
Icon:
|
|
14
|
+
Icon: c
|
|
15
15
|
},
|
|
16
16
|
"in-progress": {
|
|
17
17
|
label: "In progress",
|
|
18
18
|
variant: "warning",
|
|
19
|
-
Icon:
|
|
19
|
+
Icon: s
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
function f({ title:
|
|
22
|
+
function f({ title: s, summary: c, purpose: l, items: f }) {
|
|
23
23
|
return /* @__PURE__ */ t("div", {
|
|
24
24
|
className: "space-y-6 p-6",
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ e(
|
|
27
|
-
/* @__PURE__ */ t(
|
|
26
|
+
/* @__PURE__ */ e(o, { children: l }),
|
|
27
|
+
/* @__PURE__ */ t(r, { children: [
|
|
28
28
|
/* @__PURE__ */ t("div", {
|
|
29
29
|
className: "flex items-center gap-2",
|
|
30
|
-
children: [/* @__PURE__ */ e(
|
|
30
|
+
children: [/* @__PURE__ */ e(u, {
|
|
31
31
|
className: "h-5 w-5 text-action-primary-bg",
|
|
32
32
|
"aria-hidden": "true"
|
|
33
|
-
}), /* @__PURE__ */ e(
|
|
33
|
+
}), /* @__PURE__ */ e(n, {
|
|
34
34
|
variant: "secondary",
|
|
35
35
|
className: "uppercase",
|
|
36
36
|
children: "Coming soon"
|
|
@@ -38,11 +38,11 @@ function f({ title: n, summary: r, purpose: i, items: f }) {
|
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ e("h1", {
|
|
40
40
|
className: "mt-3 text-2xl font-bold text-text-primary",
|
|
41
|
-
children: /* @__PURE__ */ e(
|
|
41
|
+
children: /* @__PURE__ */ e(a, { children: s })
|
|
42
42
|
}),
|
|
43
43
|
/* @__PURE__ */ e("p", {
|
|
44
44
|
className: "mt-1 text-sm text-text-secondary",
|
|
45
|
-
children:
|
|
45
|
+
children: c
|
|
46
46
|
})
|
|
47
47
|
] }),
|
|
48
48
|
/* @__PURE__ */ t("section", {
|
|
@@ -52,33 +52,33 @@ function f({ title: n, summary: r, purpose: i, items: f }) {
|
|
|
52
52
|
children: "On the roadmap"
|
|
53
53
|
}), /* @__PURE__ */ e("div", {
|
|
54
54
|
className: "grid grid-cols-1 gap-4 lg:grid-cols-2",
|
|
55
|
-
children: f.map((
|
|
56
|
-
let
|
|
57
|
-
return /* @__PURE__ */ t(
|
|
55
|
+
children: f.map((r) => {
|
|
56
|
+
let a = d[r.stage], o = a.Icon;
|
|
57
|
+
return /* @__PURE__ */ t(i, {
|
|
58
58
|
treatment: "plain",
|
|
59
59
|
className: "border-border-seam p-5",
|
|
60
60
|
children: [/* @__PURE__ */ t("div", {
|
|
61
61
|
className: "flex items-start justify-between gap-3",
|
|
62
62
|
children: [/* @__PURE__ */ e("h3", {
|
|
63
63
|
className: "text-base font-semibold text-text-primary",
|
|
64
|
-
children:
|
|
65
|
-
}), /* @__PURE__ */ t(
|
|
66
|
-
variant:
|
|
64
|
+
children: r.title
|
|
65
|
+
}), /* @__PURE__ */ t(n, {
|
|
66
|
+
variant: a.variant,
|
|
67
67
|
className: "shrink-0 gap-1.5 uppercase",
|
|
68
|
-
children: [/* @__PURE__ */ e(
|
|
68
|
+
children: [/* @__PURE__ */ e(o, {
|
|
69
69
|
className: "h-3 w-3",
|
|
70
70
|
"aria-hidden": "true"
|
|
71
|
-
}),
|
|
71
|
+
}), a.label]
|
|
72
72
|
})]
|
|
73
73
|
}), /* @__PURE__ */ e("p", {
|
|
74
74
|
className: "mt-2 text-sm text-text-secondary",
|
|
75
|
-
children:
|
|
75
|
+
children: r.description
|
|
76
76
|
})]
|
|
77
|
-
},
|
|
77
|
+
}, r.id);
|
|
78
78
|
})
|
|
79
79
|
})]
|
|
80
80
|
}),
|
|
81
|
-
/* @__PURE__ */ e(
|
|
81
|
+
/* @__PURE__ */ e(i, {
|
|
82
82
|
treatment: "plain",
|
|
83
83
|
className: "border-border-seam p-5",
|
|
84
84
|
children: /* @__PURE__ */ e("p", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoadmapPanel.js","names":["
|
|
1
|
+
{"version":3,"file":"RoadmapPanel.js","names":["STAGE_META","Compass","Clock","CircleDot","RoadmapPanel","PagePurpose","purpose","EmphasisPanel","Sparkles","Badge","GradientText","title","summary","items","meta","item","StageIcon","GlassCard"],"sources":["../../../../src/eventfullymanaged/pages/modules/RoadmapPanel.tsx"],"sourcesContent":["import { CircleDot, Clock, Compass, Sparkles } from 'lucide-react';\nimport { Badge, EmphasisPanel, GlassCard, GradientText, PagePurpose } from '@burdenoff/fe-libs/ui';\n\nexport interface RoadmapItem {\n id: string;\n title: string;\n description: string;\n /** Delivery stage — controls the badge styling only. */\n stage: 'exploring' | 'planned' | 'in-progress';\n}\n\nexport interface RoadmapPanelProps {\n /** Area name, e.g. \"API Access\" or \"Integrations\". */\n title: string;\n /** One-line honest summary of what this area is (and is not) today. */\n summary: string;\n /** Longer honest note explaining the current state. */\n purpose: string;\n items: RoadmapItem[];\n}\n\nconst STAGE_META: Record<\n RoadmapItem['stage'],\n { label: string; variant: 'info' | 'warning' | 'secondary'; Icon: typeof Clock }\n> = {\n exploring: { label: 'Exploring', variant: 'secondary', Icon: Compass },\n planned: { label: 'Planned', variant: 'info', Icon: Clock },\n 'in-progress': { label: 'In progress', variant: 'warning', Icon: CircleDot },\n};\n\n/**\n * Honest \"coming soon\" / roadmap surface for EventfullyManaged areas that do not\n * yet have a real backend feature behind them. It deliberately renders NO live\n * data and makes no functional claims — it only communicates intent and stage,\n * so the app never mislabels a generic entity dashboard as a shipped capability.\n */\nexport default function RoadmapPanel({ title, summary, purpose, items }: RoadmapPanelProps) {\n return (\n <div className=\"space-y-6 p-6\">\n <PagePurpose>{purpose}</PagePurpose>\n\n <EmphasisPanel>\n <div className=\"flex items-center gap-2\">\n <Sparkles className=\"h-5 w-5 text-action-primary-bg\" aria-hidden=\"true\" />\n <Badge variant=\"secondary\" className=\"uppercase\">\n Coming soon\n </Badge>\n </div>\n <h1 className=\"mt-3 text-2xl font-bold text-text-primary\">\n <GradientText>{title}</GradientText>\n </h1>\n <p className=\"mt-1 text-sm text-text-secondary\">{summary}</p>\n </EmphasisPanel>\n\n <section className=\"space-y-3\">\n <h2 className=\"text-lg font-semibold text-text-primary\">On the roadmap</h2>\n <div className=\"grid grid-cols-1 gap-4 lg:grid-cols-2\">\n {items.map((item) => {\n const meta = STAGE_META[item.stage];\n const StageIcon = meta.Icon;\n return (\n <GlassCard key={item.id} treatment=\"plain\" className=\"border-border-seam p-5\">\n <div className=\"flex items-start justify-between gap-3\">\n <h3 className=\"text-base font-semibold text-text-primary\">{item.title}</h3>\n <Badge variant={meta.variant} className=\"shrink-0 gap-1.5 uppercase\">\n <StageIcon className=\"h-3 w-3\" aria-hidden=\"true\" />\n {meta.label}\n </Badge>\n </div>\n <p className=\"mt-2 text-sm text-text-secondary\">{item.description}</p>\n </GlassCard>\n );\n })}\n </div>\n </section>\n\n <GlassCard treatment=\"plain\" className=\"border-border-seam p-5\">\n <p className=\"text-sm text-text-secondary\">\n Nothing here is live yet. When these capabilities ship they will appear in this module with real data and\n controls — until then this page is an honest placeholder rather than a mock.\n </p>\n </GlassCard>\n </div>\n );\n}\n"],"mappings":";;;;AAqBA,IAAMA,IAGF;CACF,WAAW;EAAE,OAAO;EAAa,SAAS;EAAa,MAAMC;CAAQ;CACrE,SAAS;EAAE,OAAO;EAAW,SAAS;EAAQ,MAAMC;CAAM;CAC1D,eAAe;EAAE,OAAO;EAAe,SAAS;EAAW,MAAMC;CAAU;AAC7E;AAQA,SAAwBC,EAAa,EAAE,UAAO,YAAS,YAAS,YAA4B;CAC1F,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAACC,GAAD,EAAA,UAAcC,EAAqB,CAAA;GAEnC,kBAACC,GAAD,EAAA,UAAA;IACE,kBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACE,kBAACC,GAAD;MAAU,WAAU;MAAiC,eAAY;KAAQ,CAAA,GACzE,kBAACC,GAAD;MAAO,SAAQ;MAAY,WAAU;MAAY,UAAA;KAE1C,CAAA,CACJ;;IACL,kBAAC,MAAD;KAAI,WAAU;KACZ,UAAA,kBAACC,GAAD,EAAA,UAAeC,EAAoB,CAAA;IACjC,CAAA;IACJ,kBAAC,KAAD;KAAG,WAAU;KAAoC,UAAAC;IAAW,CAAA;GAC/C,EAAA,CAAA;GAEf,kBAAC,WAAD;IAAS,WAAU;IAAnB,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;KAA0C,UAAA;IAAkB,CAAA,GAC1E,kBAAC,OAAD;KAAK,WAAU;KACZ,UAAAC,EAAM,KAAK,MAAS;MACnB,IAAMC,IAAOd,EAAWe,EAAK,QACvBC,IAAYF,EAAK;MACvB,OACE,kBAACG,GAAD;OAAyB,WAAU;OAAQ,WAAU;OAArD,UAAA,CACE,kBAAC,OAAD;QAAK,WAAU;QAAf,UAAA,CACE,kBAAC,MAAD;SAAI,WAAU;SAA6C,UAAAF,EAAK;QAAU,CAAA,GAC1E,kBAACN,GAAD;SAAO,SAASK,EAAK;SAAS,WAAU;SAAxC,UAAA,CACE,kBAACE,GAAD;UAAW,WAAU;UAAU,eAAY;SAAQ,CAAA,GAClDF,EAAK,KACD;QACJ,CAAA,CAAA;OACL,CAAA,GAAA,kBAAC,KAAD;QAAG,WAAU;QAAoC,UAAAC,EAAK;OAAe,CAAA,CAC5D;MATK,GAAAA,EAAK,EASV;KAEf,CAAC;IACE,CAAA,CACE;;GAET,kBAACE,GAAD;IAAW,WAAU;IAAQ,WAAU;IACrC,UAAA,kBAAC,KAAD;KAAG,WAAU;KAA8B,UAAA;IAGxC,CAAA;GACM,CAAA;EACR;;AAET"}
|
|
@@ -8,8 +8,8 @@ import { EntityListSection as c } from "./EntityListSection.js";
|
|
|
8
8
|
import { useEffect as l, useMemo as u } from "react";
|
|
9
9
|
import { useParams as d } from "react-router";
|
|
10
10
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { Badge as m, EmphasisPanel as h, GlassCard as g, GradientText as _, NextSteps as v, PagePurpose as y } from "@burdenoff/fe-libs/ui";
|
|
12
|
+
import { Building2 as b, Coins as x, Magnet as S, Megaphone as C, Pencil as w, TrendingUp as T } from "lucide-react";
|
|
13
13
|
import { ContextConversationWidget as E } from "@burdenoff/fe-libs/shared";
|
|
14
14
|
import { useRegisterPageConversationContext as D } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
15
15
|
// src/eventfullymanaged/pages/modules/SponsorDetailsPage.tsx
|
|
@@ -35,8 +35,8 @@ function A() {
|
|
|
35
35
|
return /* @__PURE__ */ p("div", {
|
|
36
36
|
className: "space-y-6 p-6",
|
|
37
37
|
children: [
|
|
38
|
-
/* @__PURE__ */ f(
|
|
39
|
-
/* @__PURE__ */ p(
|
|
38
|
+
/* @__PURE__ */ f(y, { 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(h, { children: [/* @__PURE__ */ p("div", {
|
|
40
40
|
className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
41
41
|
children: [/* @__PURE__ */ p("div", {
|
|
42
42
|
className: "flex items-center gap-4",
|
|
@@ -46,15 +46,15 @@ function A() {
|
|
|
46
46
|
value: M.logoUrl,
|
|
47
47
|
alt: "",
|
|
48
48
|
className: "h-full w-full object-cover"
|
|
49
|
-
}) : /* @__PURE__ */ f(
|
|
49
|
+
}) : /* @__PURE__ */ f(b, { className: "h-6 w-6 text-text-muted" })
|
|
50
50
|
}), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h1", {
|
|
51
51
|
className: "text-2xl font-bold text-text-primary",
|
|
52
|
-
children: /* @__PURE__ */ f(
|
|
52
|
+
children: /* @__PURE__ */ f(_, { children: M?.name ?? "Sponsor" })
|
|
53
53
|
}), /* @__PURE__ */ f("p", {
|
|
54
54
|
className: "mt-1 text-sm text-text-secondary",
|
|
55
55
|
children: A.loading ? "Loading sponsor details..." : M ? "Live sponsor profile and partnership metrics." : "Sponsor not found in current query scope."
|
|
56
56
|
})] })]
|
|
57
|
-
}), M ? /* @__PURE__ */ f(
|
|
57
|
+
}), M ? /* @__PURE__ */ f(m, {
|
|
58
58
|
variant: "secondary",
|
|
59
59
|
className: "shrink-0 self-start uppercase",
|
|
60
60
|
children: M.level
|
|
@@ -62,12 +62,12 @@ function A() {
|
|
|
62
62
|
}), M ? /* @__PURE__ */ p("div", {
|
|
63
63
|
className: "mt-5 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */ p(
|
|
65
|
+
/* @__PURE__ */ p(g, {
|
|
66
66
|
treatment: "metric",
|
|
67
67
|
className: "p-4",
|
|
68
68
|
children: [/* @__PURE__ */ p("div", {
|
|
69
69
|
className: "flex items-center gap-2 text-text-secondary",
|
|
70
|
-
children: [/* @__PURE__ */ f(
|
|
70
|
+
children: [/* @__PURE__ */ f(x, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ f("p", {
|
|
71
71
|
className: "text-xs font-medium uppercase tracking-wide",
|
|
72
72
|
children: "Contract value"
|
|
73
73
|
})]
|
|
@@ -80,13 +80,13 @@ function A() {
|
|
|
80
80
|
]
|
|
81
81
|
})]
|
|
82
82
|
}),
|
|
83
|
-
/* @__PURE__ */ p(
|
|
83
|
+
/* @__PURE__ */ p(g, {
|
|
84
84
|
treatment: "metric",
|
|
85
85
|
className: "p-4",
|
|
86
86
|
children: [
|
|
87
87
|
/* @__PURE__ */ p("div", {
|
|
88
88
|
className: "flex items-center gap-2 text-text-secondary",
|
|
89
|
-
children: [/* @__PURE__ */ f(
|
|
89
|
+
children: [/* @__PURE__ */ f(S, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ f("p", {
|
|
90
90
|
className: "text-xs font-medium uppercase tracking-wide",
|
|
91
91
|
children: "Leads"
|
|
92
92
|
})]
|
|
@@ -118,7 +118,7 @@ function A() {
|
|
|
118
118
|
}) : null
|
|
119
119
|
]
|
|
120
120
|
}),
|
|
121
|
-
/* @__PURE__ */ p(
|
|
121
|
+
/* @__PURE__ */ p(g, {
|
|
122
122
|
treatment: "metric",
|
|
123
123
|
className: "p-4",
|
|
124
124
|
children: [
|
|
@@ -144,7 +144,7 @@ function A() {
|
|
|
144
144
|
})
|
|
145
145
|
]
|
|
146
146
|
}) : null] }),
|
|
147
|
-
M ? /* @__PURE__ */ p(
|
|
147
|
+
M ? /* @__PURE__ */ p(g, {
|
|
148
148
|
treatment: "plain",
|
|
149
149
|
className: "border-border-seam p-5",
|
|
150
150
|
children: [
|
|
@@ -186,7 +186,7 @@ function A() {
|
|
|
186
186
|
sponsorName: M.name
|
|
187
187
|
})]
|
|
188
188
|
}) : null,
|
|
189
|
-
/* @__PURE__ */ f(
|
|
189
|
+
/* @__PURE__ */ f(v, {
|
|
190
190
|
storageKey: "eventfullymanaged-sponsor-details",
|
|
191
191
|
title: "Grow this partnership",
|
|
192
192
|
steps: [
|
|
@@ -194,21 +194,21 @@ function A() {
|
|
|
194
194
|
id: "edit-sponsor",
|
|
195
195
|
label: "Update sponsor details",
|
|
196
196
|
description: "Keep tier, contacts and contract value current.",
|
|
197
|
-
icon: /* @__PURE__ */ f(
|
|
197
|
+
icon: /* @__PURE__ */ f(w, { className: "h-4 w-4" }),
|
|
198
198
|
onClick: () => D(E ? `/sponsors/${E}/edit` : "/sponsors")
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
id: "track-leads",
|
|
202
202
|
label: "Track sponsor leads",
|
|
203
203
|
description: "See the leads this sponsor is generating at the event.",
|
|
204
|
-
icon: /* @__PURE__ */ f(
|
|
204
|
+
icon: /* @__PURE__ */ f(T, { className: "h-4 w-4" }),
|
|
205
205
|
onClick: () => D(E ? `/sponsors/${E}/leads` : "/sponsors")
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
id: "run-campaign",
|
|
209
209
|
label: "Run a co-branded campaign",
|
|
210
210
|
description: "Promote this sponsor through a communication campaign.",
|
|
211
|
-
icon: /* @__PURE__ */ f(
|
|
211
|
+
icon: /* @__PURE__ */ f(C, { className: "h-4 w-4" }),
|
|
212
212
|
onClick: () => D("/communication")
|
|
213
213
|
}
|
|
214
214
|
]
|
|
@@ -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","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\">\n {compactNumber.format(value)} {sponsor.currency ?? ''}\n </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,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;CAE9C,SACEM,EAAuBJ,GAAIG,GAAS,IAAI,SAC3BE,EAAyBL,CAAE,IACvC,CAACA,GAAIG,GAAS,IAAI,CAAC;CAEtB,IAAMG,IAAYjB,QACTY,EAAe,MAAM,uBAAuB,SAAS,CAAC,GAC7D,CAACA,EAAe,IAAI,CACtB,GAEMM,IAAWJ,GAAS,WAAW,CAAC,GAChCK,IAAQ,OAAOD,EAAQ,SAAS,CAAC,GACjCE,IAAQ,OAAOF,EAAQ,SAAS,CAAC,GACjCG,IAAS,OAAOH,E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AW;MACX,UAAUlB,EAAQ;MAClB,OAAM;MACN,WAAU;KACX,CAAA;IACQ;GACT,CAAA,IAAA;GAEJ,kBAACmB,GAAD;IACE,SAASrB,EAAe,UAAU,yBAAyB,sBAAsBK,EAAU,OAAO;IAClG,YAAW;IACX,MAAMA,EAAU,KAAK,OAAc;KACjC,IAAIiB,EAAS;KACb,OAAOA,EAAS,SAASA,EAAS,QAAQ,YAAYA,EAAS;KAC/D,QAAQA,EAAS;IACnB,EAAE;GACH,CAAA;GAEApB,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,kBAACqB,GAAD;IACE,YAAW;IACX,OAAM;IACN,OAAO;KACL;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACC,GAAD,EAAQ,WAAU,UAAW,CAAA;MACnC,eAAeC,EAAS1B,IAAK,aAAaA,EAAG,SAAS,WAAW;KACnE;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAC2B,GAAD,EAAY,WAAU,UAAW,CAAA;MACvC,eAAeD,EAAS1B,IAAK,aAAaA,EAAG,UAAU,WAAW;KACpE;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAC4B,GAAD,EAAW,WAAU,UAAW,CAAA;MACtC,eAAeF,EAAS,gBAAgB;KAC1C;IACF;GACD,CAAA;EACE;;AAET"}
|
|
1
|
+
{"version":3,"file":"SponsorDetailsPage.js","names":["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","Badge","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\">\n {compactNumber.format(value)} {sponsor.currency ?? ''}\n </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,SAASA,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;CAE9C,SACEM,EAAuBJ,GAAIG,GAAS,IAAI,SAC3BE,EAAyBL,CAAE,IACvC,CAACA,GAAIG,GAAS,IAAI,CAAC;CAEtB,IAAMG,IAAYjB,QACTY,EAAe,MAAM,uBAAuB,SAAS,CAAC,GAC7D,CAACA,EAAe,IAAI,CACtB,GAEMM,IAAWJ,GAAS,WAAW,CAAC,GAChCK,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,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OAAO;IAClG,YAAW;IACX,MAAMA,EAAU,KAAK,OAAc;KACjC,IAAIkB,EAAS;KACb,OAAOA,EAAS,SAASA,EAAS,QAAQ,YAAYA,EAAS;KAC/D,QAAQA,EAAS;IACnB,EAAE;GACH,CAAA;GAEArB,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,kBAACsB,GAAD;IACE,YAAW;IACX,OAAM;IACN,OAAO;KACL;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAACC,GAAD,EAAQ,WAAU,UAAW,CAAA;MACnC,eAAeC,EAAS3B,IAAK,aAAaA,EAAG,SAAS,WAAW;KACnE;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAC4B,GAAD,EAAY,WAAU,UAAW,CAAA;MACvC,eAAeD,EAAS3B,IAAK,aAAaA,EAAG,UAAU,WAAW;KACpE;KACA;MACE,IAAI;MACJ,OAAO;MACP,aAAa;MACb,MAAM,kBAAC6B,GAAD,EAAW,WAAU,UAAW,CAAA;MACtC,eAAeF,EAAS,gBAAgB;KAC1C;IACF;GACD,CAAA;EACE;;AAET"}
|
|
@@ -5,8 +5,8 @@ import { EntityListSection as o } from "./EntityListSection.js";
|
|
|
5
5
|
import { useMemo as s, useState as c } from "react";
|
|
6
6
|
import { useParams as l } from "react-router";
|
|
7
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { Button as f, EmphasisPanel as p, GradientText as m, NextSteps as h, PagePurpose as g } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { Megaphone as _, User as v, UserPlus as y, Users as b } from "lucide-react";
|
|
10
10
|
// src/eventfullymanaged/pages/modules/SponsorLeadsPage.tsx
|
|
11
11
|
function x() {
|
|
12
12
|
let { id: x = "" } = l(), { navigate: S } = i(), [C, w] = c(!1), T = r(x), E = n({
|
|
@@ -24,20 +24,20 @@ function x() {
|
|
|
24
24
|
return /* @__PURE__ */ d("div", {
|
|
25
25
|
className: "space-y-6 p-6",
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */ u(
|
|
28
|
-
/* @__PURE__ */ d(
|
|
27
|
+
/* @__PURE__ */ u(g, { children: "The return on a sponsorship is the people it puts in front of the sponsor. This page pulls together the leads captured for this sponsor, the potential leads from networking matches, and the booked sponsor meetings — so you can show them exactly who they met and why their investment paid off." }),
|
|
28
|
+
/* @__PURE__ */ d(p, {
|
|
29
29
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
30
30
|
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ d("h1", {
|
|
31
31
|
className: "text-2xl font-bold text-text-primary",
|
|
32
|
-
children: [/* @__PURE__ */ u(
|
|
32
|
+
children: [/* @__PURE__ */ u(m, { children: "Sponsor" }), " Leads"]
|
|
33
33
|
}), /* @__PURE__ */ u("p", {
|
|
34
34
|
className: "mt-1 text-sm text-text-secondary",
|
|
35
35
|
children: O ? `${O.name} lead funnel sourced from captured leads, networking and meetings.` : "Lead funnel sourced from captured leads, networking and meeting streams."
|
|
36
|
-
})] }), /* @__PURE__ */ d(
|
|
36
|
+
})] }), /* @__PURE__ */ d(f, {
|
|
37
37
|
type: "button",
|
|
38
38
|
onClick: () => w(!0),
|
|
39
39
|
disabled: !O,
|
|
40
|
-
children: [/* @__PURE__ */ u(
|
|
40
|
+
children: [/* @__PURE__ */ u(y, { className: "h-4 w-4" }), "Add lead"]
|
|
41
41
|
})]
|
|
42
42
|
}),
|
|
43
43
|
/* @__PURE__ */ u(o, {
|
|
@@ -70,7 +70,7 @@ function x() {
|
|
|
70
70
|
status: e.status
|
|
71
71
|
}))
|
|
72
72
|
}),
|
|
73
|
-
/* @__PURE__ */ u(
|
|
73
|
+
/* @__PURE__ */ u(h, {
|
|
74
74
|
storageKey: "eventfullymanaged-sponsor-leads",
|
|
75
75
|
title: "Turn leads into wins",
|
|
76
76
|
steps: [
|
|
@@ -78,21 +78,21 @@ function x() {
|
|
|
78
78
|
id: "sponsor-profile",
|
|
79
79
|
label: "Back to sponsor profile",
|
|
80
80
|
description: "Review this sponsor’s tier, contacts and contract value.",
|
|
81
|
-
icon: /* @__PURE__ */ u(
|
|
81
|
+
icon: /* @__PURE__ */ u(v, { className: "h-4 w-4" }),
|
|
82
82
|
onClick: () => S(x ? `/sponsors/${x}` : "/sponsors")
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
id: "boost-networking",
|
|
86
86
|
label: "Boost networking",
|
|
87
87
|
description: "Improve matchmaking so sponsors meet more of the right people.",
|
|
88
|
-
icon: /* @__PURE__ */ u(
|
|
88
|
+
icon: /* @__PURE__ */ u(b, { className: "h-4 w-4" }),
|
|
89
89
|
onClick: () => S("/networking")
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
id: "follow-up",
|
|
93
93
|
label: "Follow up with attendees",
|
|
94
94
|
description: "Send a campaign to nurture the leads after the event.",
|
|
95
|
-
icon: /* @__PURE__ */ u(
|
|
95
|
+
icon: /* @__PURE__ */ u(_, { className: "h-4 w-4" }),
|
|
96
96
|
onClick: () => S("/communication")
|
|
97
97
|
}
|
|
98
98
|
]
|
|
@@ -4,19 +4,19 @@ import { EntityListSection as n } from "./EntityListSection.js";
|
|
|
4
4
|
import { useMemo as r } from "react";
|
|
5
5
|
import { useParams as i } from "react-router";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { EmphasisPanel as s, GlassCard as c, GradientText as l, NextSteps as u, PagePurpose as d } from "@burdenoff/fe-libs/ui";
|
|
8
|
+
import { Building2 as f, Map as p, SquareStack as m } from "lucide-react";
|
|
9
9
|
// src/eventfullymanaged/pages/modules/VenueResourcesPage.tsx
|
|
10
10
|
function h() {
|
|
11
11
|
let { id: h = "" } = i(), { navigate: g } = t(), _ = e(h), v = _.data?.venue, y = r(() => _.data?.floorPlans.items ?? [], [_.data]);
|
|
12
12
|
return /* @__PURE__ */ o("div", {
|
|
13
13
|
className: "space-y-6 p-6",
|
|
14
14
|
children: [
|
|
15
|
-
/* @__PURE__ */ a(
|
|
16
|
-
/* @__PURE__ */ o(
|
|
15
|
+
/* @__PURE__ */ a(d, { children: "A capacity-and-layout view of a single venue. It rolls up the practical resources you need to run an event in this space — how many people fit, what amenities are on offer, and which floor plans are mapped. Use it when deciding whether a venue can host your event and what still needs setting up." }),
|
|
16
|
+
/* @__PURE__ */ o(s, { children: [
|
|
17
17
|
/* @__PURE__ */ o("h1", {
|
|
18
18
|
className: "text-2xl font-bold text-text-primary",
|
|
19
|
-
children: [/* @__PURE__ */ a(
|
|
19
|
+
children: [/* @__PURE__ */ a(l, { children: "Venue" }), " Resources"]
|
|
20
20
|
}),
|
|
21
21
|
/* @__PURE__ */ a("p", {
|
|
22
22
|
className: "mt-1 text-sm text-text-secondary",
|
|
@@ -25,7 +25,7 @@ function h() {
|
|
|
25
25
|
/* @__PURE__ */ o("div", {
|
|
26
26
|
className: "mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4",
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */ o(
|
|
28
|
+
/* @__PURE__ */ o(c, {
|
|
29
29
|
treatment: "glass",
|
|
30
30
|
glow: !0,
|
|
31
31
|
className: "p-3",
|
|
@@ -37,7 +37,7 @@ function h() {
|
|
|
37
37
|
children: v?.status ?? "unknown"
|
|
38
38
|
})]
|
|
39
39
|
}),
|
|
40
|
-
/* @__PURE__ */ o(
|
|
40
|
+
/* @__PURE__ */ o(c, {
|
|
41
41
|
treatment: "metric",
|
|
42
42
|
className: "p-3",
|
|
43
43
|
children: [/* @__PURE__ */ a("p", {
|
|
@@ -48,7 +48,7 @@ function h() {
|
|
|
48
48
|
children: v?.capacity?.toLocaleString() ?? 0
|
|
49
49
|
})]
|
|
50
50
|
}),
|
|
51
|
-
/* @__PURE__ */ o(
|
|
51
|
+
/* @__PURE__ */ o(c, {
|
|
52
52
|
treatment: "metric",
|
|
53
53
|
className: "p-3",
|
|
54
54
|
children: [/* @__PURE__ */ a("p", {
|
|
@@ -59,7 +59,7 @@ function h() {
|
|
|
59
59
|
children: v?.amenities.length ?? 0
|
|
60
60
|
})]
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */ o(
|
|
62
|
+
/* @__PURE__ */ o(c, {
|
|
63
63
|
treatment: "metric",
|
|
64
64
|
className: "p-3",
|
|
65
65
|
children: [/* @__PURE__ */ a("p", {
|
|
@@ -91,7 +91,7 @@ function h() {
|
|
|
91
91
|
title: e
|
|
92
92
|
}))
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */ a(
|
|
94
|
+
/* @__PURE__ */ a(u, {
|
|
95
95
|
storageKey: "eventfullymanaged-venue-resources",
|
|
96
96
|
title: "Get this venue event-ready",
|
|
97
97
|
steps: [
|
|
@@ -99,21 +99,21 @@ function h() {
|
|
|
99
99
|
id: "venue-detail",
|
|
100
100
|
label: "Open venue details",
|
|
101
101
|
description: "Edit capacity, address, status and amenities.",
|
|
102
|
-
icon: /* @__PURE__ */ a(
|
|
102
|
+
icon: /* @__PURE__ */ a(f, { className: "h-4 w-4" }),
|
|
103
103
|
onClick: () => g(h ? `/venues/${h}` : "/venues")
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
id: "manage-floor-plans",
|
|
107
107
|
label: "Manage floor plans",
|
|
108
108
|
description: "Add or update layouts so attendees can find their way.",
|
|
109
|
-
icon: /* @__PURE__ */ a(
|
|
109
|
+
icon: /* @__PURE__ */ a(m, { className: "h-4 w-4" }),
|
|
110
110
|
onClick: () => g(h ? `/venues/${h}/floor-plans` : "/venues")
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
id: "all-venues",
|
|
114
114
|
label: "Compare with other venues",
|
|
115
115
|
description: "Browse the full venue list to pick the best fit.",
|
|
116
|
-
icon: /* @__PURE__ */ a(
|
|
116
|
+
icon: /* @__PURE__ */ a(p, { className: "h-4 w-4" }),
|
|
117
117
|
onClick: () => g("/venues")
|
|
118
118
|
}
|
|
119
119
|
]
|