@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.
Files changed (92) hide show
  1. package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
  2. package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
  3. package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
  4. package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
  5. package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
  6. package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
  7. package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
  8. package/dist/eventfullymanaged/components/Pagination.js +7 -7
  9. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
  10. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
  11. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
  12. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
  13. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
  14. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
  15. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +264 -0
  16. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
  17. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.d.ts +4 -0
  18. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js +31 -0
  19. package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js.map +1 -0
  20. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.d.ts +6 -0
  21. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js +76 -0
  22. package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js.map +1 -0
  23. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
  24. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +271 -0
  25. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
  26. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
  27. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
  28. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
  29. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
  30. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
  31. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  32. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
  33. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  34. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
  35. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
  36. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
  37. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
  38. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
  39. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
  40. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
  41. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
  42. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
  43. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
  44. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
  45. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
  46. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
  47. package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
  48. package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
  49. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
  50. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
  51. package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
  52. package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
  53. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
  54. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
  55. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
  56. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
  57. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
  58. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  59. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
  60. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
  61. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
  62. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  63. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
  64. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
  65. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
  66. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
  67. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
  68. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
  69. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
  70. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
  71. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  72. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
  73. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
  74. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  75. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
  76. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  77. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
  78. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  79. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
  80. package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
  81. package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
  82. package/dist/generated/wspace-operations.d.ts +468 -0
  83. package/dist/generated/wspace-operations.js +215 -11
  84. package/dist/generated/wspace-operations.js.map +1 -1
  85. package/dist/generated/wspace-types.d.ts +30060 -1503
  86. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
  87. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
  88. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
  89. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
  90. package/dist/utils/pageContext.js +5 -0
  91. package/dist/utils/pageContext.js.map +1 -1
  92. package/package.json +1 -1
@@ -0,0 +1,271 @@
1
+ import { useArchiveEventCertificateTemplateMutation as e, useCreateEventCertificateTemplateMutation as t, useUpdateEventCertificateTemplateMutation as n } from "../../../generated/wspace-operations.js";
2
+ import { useTr as r } from "../../../shared/hooks/useTr.js";
3
+ import { useEventSessionsQuery as i } from "../../api/eventApi.js";
4
+ import { ActionMenu as a } from "../../components/ActionMenu.js";
5
+ import { Pagination as o, usePagination as s } from "../../components/Pagination.js";
6
+ import { mutationSucceeded as c } from "../../lib/mutationResult.js";
7
+ import { notify as l } from "../../lib/toast.js";
8
+ import { CertificateScheduleDialog as u } from "./CertificateScheduleDialog.js";
9
+ import { useId as d, useState as f } from "react";
10
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
11
+ import { Badge as h, Button as g, Dialog as _, DialogContent as v, DialogDescription as y, DialogHeader as b, DialogTitle as x, Input as S, Label as C, Textarea as w } from "@burdenoff/fe-libs/ui";
12
+ // src/eventfullymanaged/pages/certificates/CertificateTemplates.tsx
13
+ function T({ eventId: e, template: a, onClose: u, onSaved: h }) {
14
+ let T = r(), E = d(), D = s(), [O, k] = f(() => new Set(a?.requiredSessionIds ?? [])), [A, j] = f(!1), [M, { loading: N }] = t(), [P, { loading: F }] = n(), I = i({
15
+ eventId: e,
16
+ limit: D.limit,
17
+ offset: D.offset
18
+ }), L = I.data?.eventSessions, R = N || F, z = T("eventfullymanaged.certificates.templateSaveError", "Could not save template");
19
+ return /* @__PURE__ */ p(_, {
20
+ open: !0,
21
+ onOpenChange: (e) => {
22
+ !e && !R && u();
23
+ },
24
+ children: /* @__PURE__ */ m(v, {
25
+ className: "max-h-[90dvh] overflow-y-auto",
26
+ children: [/* @__PURE__ */ m(b, { children: [/* @__PURE__ */ p(x, { children: a ? T("eventfullymanaged.certificates.editTemplate", "Edit template") : T("eventfullymanaged.certificates.newTemplate", "New certificate template") }), /* @__PURE__ */ p(y, { children: T("eventfullymanaged.certificates.templateHelp", "Choose the sessions an attendee must complete to earn this certificate.") })] }), /* @__PURE__ */ p("form", {
27
+ onSubmit: async (t) => {
28
+ t.preventDefault();
29
+ let n = new FormData(t.currentTarget), r = String(n.get("title") ?? "").trim(), i = String(n.get("issuer") ?? "").trim(), o = String(n.get("statement") ?? "").trim() || null;
30
+ if (!r || !i || O.size === 0) {
31
+ j(!0);
32
+ return;
33
+ }
34
+ let s = {
35
+ title: r,
36
+ issuerName: i,
37
+ statement: o,
38
+ requiredSessionIds: [...O]
39
+ };
40
+ try {
41
+ if (a) {
42
+ let t = await P({ variables: {
43
+ eventId: e,
44
+ id: a.id,
45
+ revision: a.revision,
46
+ input: s
47
+ } });
48
+ if (!c(t, t.data?.eventfullyManagedUpdateCertificateTemplate.id, z)) return;
49
+ } else {
50
+ let t = await M({ variables: {
51
+ eventId: e,
52
+ input: s
53
+ } });
54
+ if (!c(t, t.data?.eventfullyManagedCreateCertificateTemplate.id, z)) return;
55
+ }
56
+ h();
57
+ } catch {
58
+ l.error(z);
59
+ }
60
+ },
61
+ onChange: () => j(!1),
62
+ children: /* @__PURE__ */ m("fieldset", {
63
+ disabled: R,
64
+ className: "space-y-4",
65
+ children: [
66
+ /* @__PURE__ */ m("div", {
67
+ className: "space-y-1.5",
68
+ children: [/* @__PURE__ */ p(C, {
69
+ htmlFor: E + "title",
70
+ children: T("eventfullymanaged.certificates.templateTitle", "Title")
71
+ }), /* @__PURE__ */ p(S, {
72
+ id: E + "title",
73
+ name: "title",
74
+ defaultValue: a?.title,
75
+ maxLength: 160,
76
+ required: !0
77
+ })]
78
+ }),
79
+ /* @__PURE__ */ m("div", {
80
+ className: "space-y-1.5",
81
+ children: [/* @__PURE__ */ p(C, {
82
+ htmlFor: E + "issuer",
83
+ children: T("eventfullymanaged.certificates.issuer", "Issuer")
84
+ }), /* @__PURE__ */ p(S, {
85
+ id: E + "issuer",
86
+ name: "issuer",
87
+ defaultValue: a?.issuerName,
88
+ maxLength: 160,
89
+ required: !0
90
+ })]
91
+ }),
92
+ /* @__PURE__ */ m("div", {
93
+ className: "space-y-1.5",
94
+ children: [/* @__PURE__ */ p(C, {
95
+ htmlFor: E + "statement",
96
+ children: T("eventfullymanaged.certificates.statement", "Statement (optional)")
97
+ }), /* @__PURE__ */ p(w, {
98
+ id: E + "statement",
99
+ name: "statement",
100
+ defaultValue: a?.statement ?? "",
101
+ maxLength: 500,
102
+ rows: 3
103
+ })]
104
+ }),
105
+ /* @__PURE__ */ m("fieldset", {
106
+ className: "space-y-2",
107
+ children: [
108
+ /* @__PURE__ */ p("legend", {
109
+ className: "mb-2 text-sm font-medium",
110
+ children: T("eventfullymanaged.certificates.requiredSessions", "Required sessions")
111
+ }),
112
+ I.loading ? /* @__PURE__ */ p("p", {
113
+ role: "status",
114
+ children: T("eventfullymanaged.certificates.loadingSessions", "Loading sessions…")
115
+ }) : null,
116
+ I.error ? /* @__PURE__ */ m("div", {
117
+ className: "space-y-2",
118
+ role: "alert",
119
+ children: [/* @__PURE__ */ p("p", { children: T("eventfullymanaged.certificates.sessionError", "Could not load sessions.") }), /* @__PURE__ */ p(g, {
120
+ type: "button",
121
+ variant: "outline",
122
+ onClick: () => void I.refetch().catch(() => void 0),
123
+ children: T("eventfullymanaged.certificates.retry", "Retry")
124
+ })]
125
+ }) : null,
126
+ L?.items.map((e) => /* @__PURE__ */ m("label", {
127
+ className: "flex min-h-10 items-center gap-2 text-sm",
128
+ children: [/* @__PURE__ */ p("input", {
129
+ type: "checkbox",
130
+ checked: O.has(e.id),
131
+ disabled: O.size >= 100 && !O.has(e.id),
132
+ onChange: (t) => {
133
+ let n = new Set(O);
134
+ t.target.checked ? n.add(e.id) : n.delete(e.id), k(n);
135
+ }
136
+ }), /* @__PURE__ */ p("span", { children: e.title })]
137
+ }, e.id)),
138
+ L && L.total === 0 ? /* @__PURE__ */ p("p", {
139
+ className: "text-sm text-text-secondary",
140
+ children: T("eventfullymanaged.certificates.noSessions", "Add an event session before creating a template.")
141
+ }) : null,
142
+ L ? /* @__PURE__ */ p(o, {
143
+ offset: D.offset,
144
+ limit: D.limit,
145
+ total: L.total,
146
+ loadedCount: L.items.length,
147
+ onPrev: D.prevPage,
148
+ onNext: D.nextPage,
149
+ loading: I.loading,
150
+ itemLabel: "sessions"
151
+ }) : null,
152
+ /* @__PURE__ */ p("p", {
153
+ className: "text-sm text-text-secondary",
154
+ "aria-live": "polite",
155
+ children: T("eventfullymanaged.certificates.requiredCount", "{{count}} selected", { count: O.size })
156
+ })
157
+ ]
158
+ }),
159
+ A ? /* @__PURE__ */ p("p", {
160
+ role: "alert",
161
+ className: "text-sm text-status-error-text",
162
+ children: T("eventfullymanaged.certificates.invalidTemplate", "Enter a title and issuer, and select at least one session.")
163
+ }) : null,
164
+ /* @__PURE__ */ m("div", {
165
+ className: "flex flex-wrap justify-end gap-2",
166
+ children: [/* @__PURE__ */ p(g, {
167
+ type: "button",
168
+ variant: "outline",
169
+ onClick: u,
170
+ children: T("eventfullymanaged.certificates.cancel", "Cancel")
171
+ }), /* @__PURE__ */ p(g, {
172
+ type: "submit",
173
+ disabled: !!I.error,
174
+ children: R ? T("eventfullymanaged.certificates.saving", "Saving…") : T("eventfullymanaged.certificates.save", "Save template")
175
+ })]
176
+ })
177
+ ]
178
+ })
179
+ })]
180
+ })
181
+ });
182
+ }
183
+ function E({ eventId: t, templates: n, onChange: i }) {
184
+ let o = r(), [s, d] = f(null), [_, v] = f(null), [y] = e(), b = o("eventfullymanaged.certificates.archiveError", "Could not archive template"), x = async (e) => {
185
+ try {
186
+ let n = await y({ variables: {
187
+ eventId: t,
188
+ id: e.id,
189
+ revision: e.revision
190
+ } });
191
+ if (c(n, n.data?.eventfullyManagedArchiveCertificateTemplate ? e.id : null, b)) {
192
+ i();
193
+ return;
194
+ }
195
+ } catch {
196
+ l.error(b);
197
+ }
198
+ throw Error("Certificate template archive was not confirmed.");
199
+ };
200
+ return /* @__PURE__ */ m("section", {
201
+ className: "space-y-4",
202
+ children: [
203
+ /* @__PURE__ */ m("div", {
204
+ className: "flex flex-wrap items-center justify-between gap-3",
205
+ children: [/* @__PURE__ */ p("h2", {
206
+ className: "text-lg font-semibold",
207
+ children: o("eventfullymanaged.certificates.templates", "Templates")
208
+ }), /* @__PURE__ */ p(g, {
209
+ type: "button",
210
+ onClick: () => d("new"),
211
+ children: o("eventfullymanaged.certificates.newTemplate", "New certificate template")
212
+ })]
213
+ }),
214
+ n.length === 0 ? /* @__PURE__ */ p("p", {
215
+ className: "text-text-secondary",
216
+ children: o("eventfullymanaged.certificates.noTemplates", "No active templates on this page.")
217
+ }) : null,
218
+ /* @__PURE__ */ p("ul", {
219
+ className: "space-y-2",
220
+ children: n.map((e) => /* @__PURE__ */ m("li", {
221
+ className: "flex items-start justify-between gap-3 rounded-card border border-border-seam p-3",
222
+ children: [/* @__PURE__ */ m("div", {
223
+ className: "min-w-0 space-y-1",
224
+ children: [
225
+ /* @__PURE__ */ p("h3", {
226
+ className: "font-medium break-words",
227
+ children: e.title
228
+ }),
229
+ /* @__PURE__ */ p("p", {
230
+ className: "text-sm text-text-secondary break-words",
231
+ children: e.issuerName
232
+ }),
233
+ /* @__PURE__ */ p(h, {
234
+ variant: "secondary",
235
+ children: o("eventfullymanaged.certificates.revision", "Revision {{revision}}", { revision: e.revision })
236
+ })
237
+ ]
238
+ }), /* @__PURE__ */ p(a, {
239
+ ariaLabel: o("eventfullymanaged.certificates.templateActions", "Actions for {{title}}", { title: e.title }),
240
+ entityName: e.title,
241
+ onEdit: () => d(e),
242
+ extraItems: [{
243
+ key: "schedule",
244
+ label: o("eventfullymanaged.certificates.schedule", "Schedule automatic issuance"),
245
+ onSelect: () => v(e)
246
+ }],
247
+ deleteLabel: o("eventfullymanaged.certificates.archive", "Archive"),
248
+ confirmNote: o("eventfullymanaged.certificates.archiveNote", "Existing issued receipts remain available."),
249
+ onDelete: () => x(e)
250
+ })]
251
+ }, e.id))
252
+ }),
253
+ _ ? /* @__PURE__ */ p(u, {
254
+ eventId: t,
255
+ template: _,
256
+ onClose: () => v(null)
257
+ }) : null,
258
+ s ? /* @__PURE__ */ p(T, {
259
+ eventId: t,
260
+ template: s === "new" ? void 0 : s,
261
+ onClose: () => d(null),
262
+ onSaved: () => {
263
+ d(null), i();
264
+ }
265
+ }, s === "new" ? "new" : s.id) : null
266
+ ]
267
+ });
268
+ }
269
+ export { E as CertificateTemplates };
270
+
271
+ //# sourceMappingURL=CertificateTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CertificateTemplates.js","names":["CertificateTemplateEditor","tr","useTr","id","useId","paging","usePagination","requiredIds","setRequiredIds","useState","template","error","setError","createTemplate","creating","useCreateEventCertificateTemplateMutation","updateTemplate","updating","useUpdateEventCertificateTemplateMutation","sessions","useEventSessionsQuery","page","saving","saveError","Dialog","open","onClose","DialogContent","DialogHeader","DialogTitle","DialogDescription","form","event","title","issuerName","statement","input","result","mutationSucceeded","Label","Input","Textarea","Button","session","next","Pagination","CertificateTemplates","editor","setEditor","scheduleTemplate","setScheduleTemplate","archiveTemplate","useArchiveEventCertificateTemplateMutation","archiveError","archive","templates","Badge","ActionMenu","CertificateScheduleDialog","onChange"],"sources":["../../../../src/eventfullymanaged/pages/certificates/CertificateTemplates.tsx"],"sourcesContent":["import { useId, useState, type FormEvent } from 'react';\nimport {\n Badge,\n Button,\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n Input,\n Label,\n Textarea,\n} from '@burdenoff/fe-libs/ui';\nimport {\n useArchiveEventCertificateTemplateMutation,\n useCreateEventCertificateTemplateMutation,\n useUpdateEventCertificateTemplateMutation,\n type EventCertificateTemplateFieldsFragment,\n} from '../../../generated/wspace-operations';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useEventSessionsQuery } from '../../api/eventApi';\nimport { ActionMenu } from '../../components/ActionMenu';\nimport { Pagination, usePagination } from '../../components/Pagination';\nimport { mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\nimport { CertificateScheduleDialog } from './CertificateScheduleDialog';\n\ntype Template = EventCertificateTemplateFieldsFragment;\n\ntype EditorProps = {\n eventId: string;\n template?: Template;\n onClose: () => void;\n onSaved: () => void;\n};\n\nfunction CertificateTemplateEditor({ eventId, template, onClose, onSaved }: EditorProps) {\n const tr = useTr();\n const id = useId();\n const paging = usePagination();\n const [requiredIds, setRequiredIds] = useState(() => new Set(template?.requiredSessionIds ?? []));\n const [error, setError] = useState(false);\n const [createTemplate, { loading: creating }] = useCreateEventCertificateTemplateMutation();\n const [updateTemplate, { loading: updating }] = useUpdateEventCertificateTemplateMutation();\n const sessions = useEventSessionsQuery({ eventId, limit: paging.limit, offset: paging.offset });\n const page = sessions.data?.eventSessions;\n const saving = creating || updating;\n const saveError = tr('eventfullymanaged.certificates.templateSaveError', 'Could not save template');\n\n const submit = async (event: FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n const form = new FormData(event.currentTarget);\n const title = String(form.get('title') ?? '').trim();\n const issuerName = String(form.get('issuer') ?? '').trim();\n const statement = String(form.get('statement') ?? '').trim() || null;\n if (!title || !issuerName || requiredIds.size === 0) {\n setError(true);\n return;\n }\n const input = { title, issuerName, statement, requiredSessionIds: [...requiredIds] };\n try {\n if (template) {\n const result = await updateTemplate({\n variables: { eventId, id: template.id, revision: template.revision, input },\n });\n if (!mutationSucceeded(result, result.data?.eventfullyManagedUpdateCertificateTemplate.id, saveError)) return;\n } else {\n const result = await createTemplate({ variables: { eventId, input } });\n if (!mutationSucceeded(result, result.data?.eventfullyManagedCreateCertificateTemplate.id, saveError)) return;\n }\n onSaved();\n } catch {\n notify.error(saveError);\n }\n };\n\n return (\n <Dialog\n open\n onOpenChange={(open) => {\n if (!open && !saving) onClose();\n }}\n >\n <DialogContent className=\"max-h-[90dvh] overflow-y-auto\">\n <DialogHeader>\n <DialogTitle>\n {template\n ? tr('eventfullymanaged.certificates.editTemplate', 'Edit template')\n : tr('eventfullymanaged.certificates.newTemplate', 'New certificate template')}\n </DialogTitle>\n <DialogDescription>\n {tr(\n 'eventfullymanaged.certificates.templateHelp',\n 'Choose the sessions an attendee must complete to earn this certificate.'\n )}\n </DialogDescription>\n </DialogHeader>\n <form onSubmit={submit} onChange={() => setError(false)}>\n <fieldset disabled={saving} className=\"space-y-4\">\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'title'}>{tr('eventfullymanaged.certificates.templateTitle', 'Title')}</Label>\n <Input id={id + 'title'} name=\"title\" defaultValue={template?.title} maxLength={160} required />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'issuer'}>{tr('eventfullymanaged.certificates.issuer', 'Issuer')}</Label>\n <Input id={id + 'issuer'} name=\"issuer\" defaultValue={template?.issuerName} maxLength={160} required />\n </div>\n <div className=\"space-y-1.5\">\n <Label htmlFor={id + 'statement'}>\n {tr('eventfullymanaged.certificates.statement', 'Statement (optional)')}\n </Label>\n <Textarea\n id={id + 'statement'}\n name=\"statement\"\n defaultValue={template?.statement ?? ''}\n maxLength={500}\n rows={3}\n />\n </div>\n <fieldset className=\"space-y-2\">\n <legend className=\"mb-2 text-sm font-medium\">\n {tr('eventfullymanaged.certificates.requiredSessions', 'Required sessions')}\n </legend>\n {sessions.loading ? (\n <p role=\"status\">{tr('eventfullymanaged.certificates.loadingSessions', 'Loading sessions…')}</p>\n ) : null}\n {sessions.error ? (\n <div className=\"space-y-2\" role=\"alert\">\n <p>{tr('eventfullymanaged.certificates.sessionError', 'Could not load sessions.')}</p>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => void sessions.refetch().catch(() => undefined)}\n >\n {tr('eventfullymanaged.certificates.retry', 'Retry')}\n </Button>\n </div>\n ) : null}\n {page?.items.map((session) => (\n <label key={session.id} className=\"flex min-h-10 items-center gap-2 text-sm\">\n <input\n type=\"checkbox\"\n checked={requiredIds.has(session.id)}\n disabled={requiredIds.size >= 100 && !requiredIds.has(session.id)}\n onChange={(event) => {\n const next = new Set(requiredIds);\n if (event.target.checked) next.add(session.id);\n else next.delete(session.id);\n setRequiredIds(next);\n }}\n />\n <span>{session.title}</span>\n </label>\n ))}\n {page && page.total === 0 ? (\n <p className=\"text-sm text-text-secondary\">\n {tr('eventfullymanaged.certificates.noSessions', 'Add an event session before creating a template.')}\n </p>\n ) : null}\n {page ? (\n <Pagination\n offset={paging.offset}\n limit={paging.limit}\n total={page.total}\n loadedCount={page.items.length}\n onPrev={paging.prevPage}\n onNext={paging.nextPage}\n loading={sessions.loading}\n itemLabel=\"sessions\"\n />\n ) : null}\n <p className=\"text-sm text-text-secondary\" aria-live=\"polite\">\n {tr('eventfullymanaged.certificates.requiredCount', '{{count}} selected', { count: requiredIds.size })}\n </p>\n </fieldset>\n {error ? (\n <p role=\"alert\" className=\"text-sm text-status-error-text\">\n {tr(\n 'eventfullymanaged.certificates.invalidTemplate',\n 'Enter a title and issuer, and select at least one session.'\n )}\n </p>\n ) : null}\n <div className=\"flex flex-wrap justify-end gap-2\">\n <Button type=\"button\" variant=\"outline\" onClick={onClose}>\n {tr('eventfullymanaged.certificates.cancel', 'Cancel')}\n </Button>\n <Button type=\"submit\" disabled={Boolean(sessions.error)}>\n {saving\n ? tr('eventfullymanaged.certificates.saving', 'Saving…')\n : tr('eventfullymanaged.certificates.save', 'Save template')}\n </Button>\n </div>\n </fieldset>\n </form>\n </DialogContent>\n </Dialog>\n );\n}\n\nexport function CertificateTemplates({\n eventId,\n templates,\n onChange,\n}: {\n eventId: string;\n templates: Template[];\n onChange: () => void;\n}) {\n const tr = useTr();\n const [editor, setEditor] = useState<Template | 'new' | null>(null);\n const [scheduleTemplate, setScheduleTemplate] = useState<Template | null>(null);\n const [archiveTemplate] = useArchiveEventCertificateTemplateMutation();\n const archiveError = tr('eventfullymanaged.certificates.archiveError', 'Could not archive template');\n\n const archive = async (template: Template) => {\n try {\n const result = await archiveTemplate({\n variables: { eventId, id: template.id, revision: template.revision },\n });\n if (\n mutationSucceeded(\n result,\n result.data?.eventfullyManagedArchiveCertificateTemplate ? template.id : null,\n archiveError\n )\n ) {\n onChange();\n return;\n }\n } catch {\n notify.error(archiveError);\n }\n throw new Error('Certificate template archive was not confirmed.');\n };\n\n return (\n <section className=\"space-y-4\">\n <div className=\"flex flex-wrap items-center justify-between gap-3\">\n <h2 className=\"text-lg font-semibold\">{tr('eventfullymanaged.certificates.templates', 'Templates')}</h2>\n <Button type=\"button\" onClick={() => setEditor('new')}>\n {tr('eventfullymanaged.certificates.newTemplate', 'New certificate template')}\n </Button>\n </div>\n {templates.length === 0 ? (\n <p className=\"text-text-secondary\">\n {tr('eventfullymanaged.certificates.noTemplates', 'No active templates on this page.')}\n </p>\n ) : null}\n <ul className=\"space-y-2\">\n {templates.map((template) => (\n <li\n key={template.id}\n className=\"flex items-start justify-between gap-3 rounded-card border border-border-seam p-3\"\n >\n <div className=\"min-w-0 space-y-1\">\n <h3 className=\"font-medium break-words\">{template.title}</h3>\n <p className=\"text-sm text-text-secondary break-words\">{template.issuerName}</p>\n <Badge variant=\"secondary\">\n {tr('eventfullymanaged.certificates.revision', 'Revision {{revision}}', {\n revision: template.revision,\n })}\n </Badge>\n </div>\n <ActionMenu\n ariaLabel={tr('eventfullymanaged.certificates.templateActions', 'Actions for {{title}}', {\n title: template.title,\n })}\n entityName={template.title}\n onEdit={() => setEditor(template)}\n extraItems={[\n {\n key: 'schedule',\n label: tr('eventfullymanaged.certificates.schedule', 'Schedule automatic issuance'),\n onSelect: () => setScheduleTemplate(template),\n },\n ]}\n deleteLabel={tr('eventfullymanaged.certificates.archive', 'Archive')}\n confirmNote={tr(\n 'eventfullymanaged.certificates.archiveNote',\n 'Existing issued receipts remain available.'\n )}\n onDelete={() => archive(template)}\n />\n </li>\n ))}\n </ul>\n {scheduleTemplate ? (\n <CertificateScheduleDialog\n eventId={eventId}\n template={scheduleTemplate}\n onClose={() => setScheduleTemplate(null)}\n />\n ) : null}\n {editor ? (\n <CertificateTemplateEditor\n key={editor === 'new' ? 'new' : editor.id}\n eventId={eventId}\n template={editor === 'new' ? undefined : editor}\n onClose={() => setEditor(null)}\n onSaved={() => {\n setEditor(null);\n onChange();\n }}\n />\n ) : null}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAoCA,SAASA,EAA0B,EAAE,YAAS,aAAU,YAAS,cAAwB;CACvF,IAAMC,IAAKC,EAAM,GACXC,IAAKC,EAAM,GACXC,IAASC,EAAc,GACvB,CAACC,GAAaC,KAAkBC,QAAe,IAAI,IAAIC,GAAU,sBAAsB,CAAC,CAAC,CAAC,GAC1F,CAACC,GAAOC,KAAYH,EAAS,EAAK,GAClC,CAACI,GAAgB,EAAE,SAASC,OAAcC,EAA0C,GACpF,CAACC,GAAgB,EAAE,SAASC,OAAcC,EAA0C,GACpFC,IAAWC,EAAsB;EAAE;EAAS,OAAOf,EAAO;EAAO,QAAQA,EAAO;CAAO,CAAC,GACxFgB,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atesPage(): import('react').JSX.Element;
@@ -0,0 +1,121 @@
1
+ import { useEventCertificateTemplatesQuery as e } from "../../../generated/wspace-operations.js";
2
+ import { useTr as t } from "../../../shared/hooks/useTr.js";
3
+ import { useEventfullyManaged as n } from "../../context/EventfullyManagedContext.js";
4
+ import { useCertificateOrganizerAccess as r } from "./CertificateAccess.js";
5
+ import { CertificateIssuance as i } from "./CertificateIssuance.js";
6
+ import { CertificateTemplates as a } from "./CertificateTemplates.js";
7
+ import { useState as o } from "react";
8
+ import { useParams as s } from "react-router";
9
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
10
+ import { Button as d, Tabs as f, TabsContent as p, TabsList as m, TabsTrigger as h } from "@burdenoff/fe-libs/ui";
11
+ // src/eventfullymanaged/pages/certificates/CertificatesPage.tsx
12
+ var g = 25;
13
+ function _({ eventId: n }) {
14
+ let r = t(), [s, _] = o(0), v = e({
15
+ variables: {
16
+ eventId: n,
17
+ offset: s,
18
+ limit: g
19
+ },
20
+ fetchPolicy: "no-cache",
21
+ notifyOnNetworkStatusChange: !0
22
+ }), y = v.data?.eventfullyManagedCertificateTemplates, b = () => void v.refetch().catch(() => void 0), x = y?.items ?? [];
23
+ return /* @__PURE__ */ l("div", {
24
+ className: "space-y-4",
25
+ children: v.error ? /* @__PURE__ */ u("div", {
26
+ role: "alert",
27
+ className: "space-y-2",
28
+ children: [/* @__PURE__ */ l("p", { children: r("eventfullymanaged.certificates.loadError", "Could not load certificate templates.") }), /* @__PURE__ */ l(d, {
29
+ type: "button",
30
+ variant: "outline",
31
+ onClick: b,
32
+ children: r("eventfullymanaged.certificates.retry", "Retry")
33
+ })]
34
+ }) : y ? /* @__PURE__ */ u(c, { children: [
35
+ v.loading ? /* @__PURE__ */ l("p", {
36
+ role: "status",
37
+ children: r("eventfullymanaged.certificates.loading", "Loading certificates…")
38
+ }) : null,
39
+ /* @__PURE__ */ u(f, {
40
+ defaultValue: "templates",
41
+ children: [
42
+ /* @__PURE__ */ u(m, {
43
+ "aria-label": r("eventfullymanaged.certificates.title", "Certificates"),
44
+ children: [/* @__PURE__ */ l(h, {
45
+ value: "templates",
46
+ children: r("eventfullymanaged.certificates.templates", "Templates")
47
+ }), /* @__PURE__ */ l(h, {
48
+ value: "issuance",
49
+ children: r("eventfullymanaged.certificates.issuance", "Issuance")
50
+ })]
51
+ }),
52
+ /* @__PURE__ */ l(p, {
53
+ value: "templates",
54
+ children: /* @__PURE__ */ l(a, {
55
+ eventId: n,
56
+ templates: x,
57
+ onChange: b
58
+ })
59
+ }),
60
+ /* @__PURE__ */ l(p, {
61
+ value: "issuance",
62
+ children: /* @__PURE__ */ l(i, {
63
+ eventId: n,
64
+ templates: x
65
+ })
66
+ })
67
+ ]
68
+ }),
69
+ s > 0 || y?.hasMore ? /* @__PURE__ */ u("div", {
70
+ className: "flex flex-wrap gap-2",
71
+ children: [/* @__PURE__ */ l(d, {
72
+ type: "button",
73
+ variant: "outline",
74
+ disabled: s === 0 || v.loading,
75
+ onClick: () => _((e) => Math.max(0, e - g)),
76
+ children: r("eventfullymanaged.certificates.previousTemplates", "Previous templates")
77
+ }), /* @__PURE__ */ l(d, {
78
+ type: "button",
79
+ variant: "outline",
80
+ disabled: !y?.hasMore || v.loading,
81
+ onClick: () => _((e) => e + g),
82
+ children: r("eventfullymanaged.certificates.nextTemplates", "Next templates")
83
+ })]
84
+ }) : null
85
+ ] }) : /* @__PURE__ */ l("p", {
86
+ role: "status",
87
+ children: r("eventfullymanaged.certificates.loading", "Loading certificates…")
88
+ })
89
+ });
90
+ }
91
+ function v() {
92
+ let e = t(), { id: i } = s(), { navigate: a, currentUser: o } = n(), { workspaceId: c, loading: f } = r();
93
+ return /* @__PURE__ */ u("main", {
94
+ className: "space-y-4 p-4 sm:p-6",
95
+ children: [
96
+ /* @__PURE__ */ l(d, {
97
+ type: "button",
98
+ variant: "ghost",
99
+ onClick: () => a(i ? `/events/${i}` : "/events"),
100
+ children: e("eventfullymanaged.certificates.back", "Back to event")
101
+ }),
102
+ /* @__PURE__ */ l("h1", {
103
+ className: "text-2xl font-semibold",
104
+ children: e("eventfullymanaged.certificates.title", "Certificates")
105
+ }),
106
+ f ? /* @__PURE__ */ l("p", {
107
+ role: "status",
108
+ children: e("eventfullymanaged.certificates.loading", "Loading certificates…")
109
+ }) : null,
110
+ !f && c && i ? /* @__PURE__ */ l(_, { eventId: i }, JSON.stringify([
111
+ o?.id,
112
+ c,
113
+ i
114
+ ])) : null,
115
+ !f && (!c || !i) ? /* @__PURE__ */ l("p", { children: e("eventfullymanaged.certificates.accessRequired", "You need event organizer access in this workspace.") }) : null
116
+ ]
117
+ });
118
+ }
119
+ export { v as default };
120
+
121
+ //# sourceMappingURL=CertificatesPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CertificatesPage.js","names":["_Fragment","PAGE_SIZE","CertificateWorkspace","tr","useTr","offset","setOffset","useState","templates","useEventCertificateTemplatesQuery","page","refresh","items","Button","Fragment","Tabs","TabsList","TabsTrigger","TabsContent","CertificateTemplates","CertificateIssuance","previous","CertificatesPage","useParams","useEventfullyManaged","useCertificateOrganizerAccess","navigate","id","loading","workspaceId","currentUser"],"sources":["../../../../src/eventfullymanaged/pages/certificates/CertificatesPage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { Button, Tabs, TabsContent, TabsList, TabsTrigger } from '@burdenoff/fe-libs/ui';\nimport { useParams } from 'react-router';\nimport {\n useEventCertificateTemplatesQuery,\n type EventCertificateTemplatesQuery,\n} from '../../../generated/wspace-operations';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { useCertificateOrganizerAccess } from './CertificateAccess';\nimport { CertificateIssuance } from './CertificateIssuance';\nimport { CertificateTemplates } from './CertificateTemplates';\n\nconst PAGE_SIZE = 25;\n\nfunction CertificateWorkspace({ eventId }: { eventId: string }) {\n const tr = useTr();\n const [offset, setOffset] = useState(0);\n const templates = useEventCertificateTemplatesQuery({\n variables: { eventId, offset, limit: PAGE_SIZE },\n fetchPolicy: 'no-cache',\n notifyOnNetworkStatusChange: true,\n });\n const page: EventCertificateTemplatesQuery['eventfullyManagedCertificateTemplates'] | undefined =\n templates.data?.eventfullyManagedCertificateTemplates;\n const refresh = () => void templates.refetch().catch(() => undefined);\n const items = page?.items ?? [];\n\n return (\n <div className=\"space-y-4\">\n {templates.error ? (\n <div role=\"alert\" className=\"space-y-2\">\n <p>{tr('eventfullymanaged.certificates.loadError', 'Could not load certificate templates.')}</p>\n <Button type=\"button\" variant=\"outline\" onClick={refresh}>\n {tr('eventfullymanaged.certificates.retry', 'Retry')}\n </Button>\n </div>\n ) : !page ? (\n <p role=\"status\">{tr('eventfullymanaged.certificates.loading', 'Loading certificates…')}</p>\n ) : (\n <>\n {templates.loading ? (\n <p role=\"status\">{tr('eventfullymanaged.certificates.loading', 'Loading certificates…')}</p>\n ) : null}\n <Tabs defaultValue=\"templates\">\n <TabsList aria-label={tr('eventfullymanaged.certificates.title', 'Certificates')}>\n <TabsTrigger value=\"templates\">{tr('eventfullymanaged.certificates.templates', 'Templates')}</TabsTrigger>\n <TabsTrigger value=\"issuance\">{tr('eventfullymanaged.certificates.issuance', 'Issuance')}</TabsTrigger>\n </TabsList>\n <TabsContent value=\"templates\">\n <CertificateTemplates eventId={eventId} templates={items} onChange={refresh} />\n </TabsContent>\n <TabsContent value=\"issuance\">\n <CertificateIssuance eventId={eventId} templates={items} />\n </TabsContent>\n </Tabs>\n {offset > 0 || page?.hasMore ? (\n <div className=\"flex flex-wrap gap-2\">\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={offset === 0 || templates.loading}\n onClick={() => setOffset((previous) => Math.max(0, previous - PAGE_SIZE))}\n >\n {tr('eventfullymanaged.certificates.previousTemplates', 'Previous templates')}\n </Button>\n <Button\n type=\"button\"\n variant=\"outline\"\n disabled={!page?.hasMore || templates.loading}\n onClick={() => setOffset((previous) => previous + PAGE_SIZE)}\n >\n {tr('eventfullymanaged.certificates.nextTemplates', 'Next templates')}\n </Button>\n </div>\n ) : null}\n </>\n )}\n </div>\n );\n}\n\nexport default function CertificatesPage() {\n const tr = useTr();\n const { id } = useParams();\n const { navigate, currentUser } = useEventfullyManaged();\n const { workspaceId, loading } = useCertificateOrganizerAccess();\n\n return (\n <main className=\"space-y-4 p-4 sm:p-6\">\n <Button type=\"button\" variant=\"ghost\" onClick={() => navigate(id ? `/events/${id}` : '/events')}>\n {tr('eventfullymanaged.certificates.back', 'Back to event')}\n </Button>\n <h1 className=\"text-2xl font-semibold\">{tr('eventfullymanaged.certificates.title', 'Certificates')}</h1>\n {loading ? <p role=\"status\">{tr('eventfullymanaged.certificates.loading', 'Loading certificates…')}</p> : null}\n {!loading && workspaceId && id ? (\n <CertificateWorkspace key={JSON.stringify([currentUser?.id, workspaceId, id])} eventId={id} />\n ) : null}\n {!loading && (!workspaceId || !id) ? (\n <p>\n {tr('eventfullymanaged.certificates.accessRequired', 'You need event organizer access in this workspace.')}\n </p>\n ) : null}\n </main>\n );\n}\n"],"mappings":";;;;;;;;;;;AAaA,IAAMC,IAAY;AAElB,SAASC,EAAqB,EAAE,cAAgC;CAC9D,IAAMC,IAAKC,EAAM,GACX,CAACC,GAAQC,KAAaC,EAAS,CAAC,GAChCC,IAAYC,EAAkC;EAClD,WAAW;GAAE;GAAS;GAAQ,OAAOR;EAAU;EAC/C,aAAa;EACb,6BAA6B;CAC/B,CAAC,GACKS,IACJF,EAAU,MAAM,uCACZG,UAAgB,KAAKH,EAAU,QAAQ,CAAC,CAAC,YAAY,KAAA,CAAS,GAC9DI,IAAQF,GAAM,SAAS,CAAC;CAE9B,OACE,kBAAC,OAAD;EAAK,WAAU;EACZ,UAAAF,EAAU,QACT,kBAAC,OAAD;GAAK,MAAK;GAAQ,WAAU;GAA5B,UAAA,CACE,kBAAC,KAAD,EAAA,UAAIL,EAAG,4CAA4C,uCAAuC,EAAK,CAAA,GAC/F,kBAACU,GAAD;IAAQ,MAAK;IAAS,SAAQ;IAAU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AK,CAAA;CAwC1F,CAAA;AAET;AAEA,SAAwBmB,IAAmB;CACzC,IAAMnB,IAAKC,EAAM,GACX,EAAE,UAAOmB,EAAU,GACnB,EAAE,aAAU,mBAAgBC,EAAqB,GACjD,EAAE,gBAAa,eAAYC,EAA8B;CAE/D,OACE,kBAAC,QAAD;EAAM,WAAU;EAAhB,UAAA;GACE,kBAACZ,GAAD;IAAQ,MAAK;IAAS,SAAQ;IAAQ,eAAea,EAASC,IAAK,WAAWA,MAAO,SAAS;IAC3F,UAAAxB,EAAG,uCAAuC,eAAe;GACpD,CAAA;GACR,kBAAC,MAAD;IAAI,WAAU;IAA0B,UAAAA,EAAG,wCAAwC,cAAc;GAAM,CAAA;GACtGyB,IAAU,kBAAC,KAAD;IAAG,MAAK;IAAU,UAAAzB,EAAG,0CAA0C,uBAAuB;GAAK,CAAA,IAAI;GACzG,CAACyB,KAAWC,KAAeF,IAC1B,kBAACzB,GAAD,EAA+E,SAASyB,EAAK,GAAlE,KAAK,UAAU;IAACG,GAAa;IAAID;IAAaF;GAAE,CAAC,CAAiB,IAC3F;GACH,CAACC,MAAY,CAACC,KAAe,CAACF,KAC7B,kBAAC,KAAD,EAAA,UACGxB,EAAG,iDAAiD,oDAAoD,EACxG,CAAA,IACD;EACA;;AAEV"}
@@ -8,8 +8,8 @@ import { useEventfullyManaged as o } from "../../context/EventfullyManagedContex
8
8
  import { formatDateTime as s } from "../events/eventFormUtils.js";
9
9
  import { useMemo as c, useState as l } from "react";
10
10
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
11
- import { Building2 as f, CalendarClock as p, CalendarDays as m, ChevronRight as h, Handshake as g, PlayCircle as _, Ticket as v, UserPlus as y, Users as b } from "lucide-react";
12
- import { GlassCard as x, GradientText as S, IllustratedEmptyState as C, NextSteps as w, PagePurpose as T, Skeleton as E } from "@burdenoff/fe-libs/ui";
11
+ import { GlassCard as f, GradientText as p, IllustratedEmptyState as m, NextSteps as h, PagePurpose as g, Skeleton as _ } from "@burdenoff/fe-libs/ui";
12
+ import { Building2 as v, CalendarClock as y, CalendarDays as b, ChevronRight as x, Handshake as S, PlayCircle as C, Ticket as w, UserPlus as T, Users as E } from "lucide-react";
13
13
  // src/eventfullymanaged/pages/dashboard/DashboardPage.tsx
14
14
  var D = e`
15
15
  query EventfullymanagedDashboardRegistrations($limit: Int) {
@@ -67,7 +67,7 @@ function M() {
67
67
  label: e("eventfullymanaged.dashboard.cards.totalEvents", "Total Events"),
68
68
  value: L?.totalEvents ?? 0,
69
69
  sublabel: e("eventfullymanaged.dashboard.cards.totalEventsSub", "across your workspace"),
70
- icon: m,
70
+ icon: b,
71
71
  path: "/events",
72
72
  featured: !0
73
73
  },
@@ -75,47 +75,47 @@ function M() {
75
75
  label: e("eventfullymanaged.dashboard.cards.activeEvents", "Active Events"),
76
76
  value: L?.activeEvents ?? 0,
77
77
  sublabel: e("eventfullymanaged.dashboard.cards.activeEventsSub", "live or published now"),
78
- icon: _,
78
+ icon: C,
79
79
  path: "/events"
80
80
  },
81
81
  {
82
82
  label: e("eventfullymanaged.dashboard.cards.registrations", "Registrations"),
83
83
  value: L?.totalRegistrations ?? 0,
84
84
  sublabel: e("eventfullymanaged.dashboard.cards.registrationsSub", "sign-ups received"),
85
- icon: y,
85
+ icon: T,
86
86
  path: "/registration"
87
87
  },
88
88
  {
89
89
  label: e("eventfullymanaged.dashboard.cards.attendees", "Attendees"),
90
90
  value: L?.totalAttendees ?? 0,
91
91
  sublabel: e("eventfullymanaged.dashboard.cards.attendeesSub", "people in your audience"),
92
- icon: b,
92
+ icon: E,
93
93
  path: "/registration"
94
94
  },
95
95
  {
96
96
  label: e("eventfullymanaged.dashboard.cards.venues", "Venues"),
97
97
  value: L?.totalVenues ?? 0,
98
98
  sublabel: e("eventfullymanaged.dashboard.cards.venuesSub", "spaces mapped"),
99
- icon: f,
99
+ icon: v,
100
100
  path: "/venues"
101
101
  },
102
102
  {
103
103
  label: e("eventfullymanaged.dashboard.cards.sponsors", "Sponsors"),
104
104
  value: L?.totalSponsors ?? 0,
105
105
  sublabel: e("eventfullymanaged.dashboard.cards.sponsorsSub", "partners onboarded"),
106
- icon: g,
106
+ icon: S,
107
107
  path: "/sponsors"
108
108
  }
109
109
  ];
110
110
  return /* @__PURE__ */ d(a, {
111
111
  hero: !0,
112
- title: /* @__PURE__ */ u(S, {
112
+ title: /* @__PURE__ */ u(p, {
113
113
  as: "span",
114
114
  children: e("eventfullymanaged.dashboard.title", "Dashboard")
115
115
  }),
116
116
  description: M ? e("eventfullymanaged.dashboard.description.loading", "Loading real-time event operations summary…") : e("eventfullymanaged.dashboard.description.ready", "Your live event operations, at a glance."),
117
117
  children: [
118
- /* @__PURE__ */ u(T, {
118
+ /* @__PURE__ */ u(g, {
119
119
  className: "mb-6",
120
120
  children: e("eventfullymanaged.dashboard.purpose", "Your event control center. Each tile below is a live count from a different part of your event operations. Open any tile to manage that area, watch registrations climb in the trend chart, and jump straight to the sessions coming up next.")
121
121
  }),
@@ -123,7 +123,7 @@ function M() {
123
123
  className: "grid grid-cols-2 gap-4 sm:grid-cols-3 xl:grid-cols-6",
124
124
  children: V.map((e) => {
125
125
  let t = e.icon;
126
- return /* @__PURE__ */ d(x, {
126
+ return /* @__PURE__ */ d(f, {
127
127
  treatment: e.featured ? "glass" : "metric",
128
128
  glow: e.featured,
129
129
  role: "button",
@@ -141,7 +141,7 @@ function M() {
141
141
  }),
142
142
  /* @__PURE__ */ u("div", {
143
143
  className: "mt-3 text-2xl font-semibold tabular-nums text-text-primary",
144
- children: M ? /* @__PURE__ */ u(E, { className: "h-7 w-14" }) : e.value.toLocaleString()
144
+ children: M ? /* @__PURE__ */ u(_, { className: "h-7 w-14" }) : e.value.toLocaleString()
145
145
  }),
146
146
  /* @__PURE__ */ u("div", {
147
147
  className: "mt-1 text-sm font-medium text-text-primary",
@@ -157,7 +157,7 @@ function M() {
157
157
  }),
158
158
  /* @__PURE__ */ d("div", {
159
159
  className: "mt-6 grid grid-cols-1 gap-4 lg:grid-cols-5",
160
- children: [/* @__PURE__ */ d(x, {
160
+ children: [/* @__PURE__ */ d(f, {
161
161
  treatment: "glass",
162
162
  className: "p-5 lg:col-span-3",
163
163
  children: [/* @__PURE__ */ d("div", {
@@ -174,14 +174,14 @@ function M() {
174
174
  })]
175
175
  }), /* @__PURE__ */ u("div", {
176
176
  className: "mt-4",
177
- children: P ? /* @__PURE__ */ u(E, { className: "h-[260px] w-full rounded-card" }) : z.some((e) => e.value > 0) ? /* @__PURE__ */ u(i, { data: z }) : /* @__PURE__ */ u(C, {
177
+ children: P ? /* @__PURE__ */ u(_, { className: "h-[260px] w-full rounded-card" }) : z.some((e) => e.value > 0) ? /* @__PURE__ */ u(i, { data: z }) : /* @__PURE__ */ u(m, {
178
178
  illustration: "empty-data",
179
179
  title: e("eventfullymanaged.dashboard.trend.empty", "No registrations yet."),
180
180
  description: e("eventfullymanaged.dashboard.trend.emptyHint", "Once attendees start signing up, their momentum shows here."),
181
181
  className: "py-10"
182
182
  })
183
183
  })]
184
- }), /* @__PURE__ */ d(x, {
184
+ }), /* @__PURE__ */ d(f, {
185
185
  treatment: "plain",
186
186
  className: "border-border-seam p-5 lg:col-span-2",
187
187
  children: [/* @__PURE__ */ u("h2", {
@@ -192,11 +192,11 @@ function M() {
192
192
  children: I ? /* @__PURE__ */ d("div", {
193
193
  className: "space-y-3",
194
194
  children: [
195
- /* @__PURE__ */ u(E, { className: "h-14 w-full rounded-card" }),
196
- /* @__PURE__ */ u(E, { className: "h-14 w-full rounded-card" }),
197
- /* @__PURE__ */ u(E, { className: "h-14 w-full rounded-card" })
195
+ /* @__PURE__ */ u(_, { className: "h-14 w-full rounded-card" }),
196
+ /* @__PURE__ */ u(_, { className: "h-14 w-full rounded-card" }),
197
+ /* @__PURE__ */ u(_, { className: "h-14 w-full rounded-card" })
198
198
  ]
199
- }) : B.length === 0 ? /* @__PURE__ */ u(C, {
199
+ }) : B.length === 0 ? /* @__PURE__ */ u(m, {
200
200
  illustration: "empty-data",
201
201
  title: e("eventfullymanaged.dashboard.upcoming.empty", "Nothing scheduled yet."),
202
202
  description: e("eventfullymanaged.dashboard.upcoming.emptyHint", "Sessions you schedule will surface here as they approach."),
@@ -210,7 +210,7 @@ function M() {
210
210
  children: [
211
211
  /* @__PURE__ */ u("span", {
212
212
  className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-button bg-accent-wash text-action-primary-bg",
213
- children: /* @__PURE__ */ u(p, { className: "h-4 w-4" })
213
+ children: /* @__PURE__ */ u(y, { className: "h-4 w-4" })
214
214
  }),
215
215
  /* @__PURE__ */ d("span", {
216
216
  className: "min-w-0 flex-1",
@@ -222,14 +222,14 @@ function M() {
222
222
  children: [s(e.startsAt), e.track].filter(Boolean).join(" • ")
223
223
  })]
224
224
  }),
225
- /* @__PURE__ */ u(h, { className: "h-4 w-4 shrink-0 text-text-muted transition-transform group-hover:translate-x-0.5" })
225
+ /* @__PURE__ */ u(x, { className: "h-4 w-4 shrink-0 text-text-muted transition-transform group-hover:translate-x-0.5" })
226
226
  ]
227
227
  }) }, e.id))
228
228
  })
229
229
  })]
230
230
  })]
231
231
  }),
232
- /* @__PURE__ */ u(w, {
232
+ /* @__PURE__ */ u(h, {
233
233
  className: "mt-6",
234
234
  storageKey: "eventfullymanaged-dashboard",
235
235
  title: e("eventfullymanaged.dashboard.nextSteps.title", "Get your first event running"),
@@ -238,28 +238,28 @@ function M() {
238
238
  id: "create-event",
239
239
  label: e("eventfullymanaged.dashboard.nextSteps.createEvent", "Create an event"),
240
240
  description: e("eventfullymanaged.dashboard.nextSteps.createEventDesc", "Start with the basics — name, dates and capacity."),
241
- icon: /* @__PURE__ */ u(m, { className: "h-4 w-4" }),
241
+ icon: /* @__PURE__ */ u(b, { className: "h-4 w-4" }),
242
242
  onClick: () => k("/events/create")
243
243
  },
244
244
  {
245
245
  id: "add-venue",
246
246
  label: e("eventfullymanaged.dashboard.nextSteps.addVenue", "Add a venue"),
247
247
  description: e("eventfullymanaged.dashboard.nextSteps.addVenueDesc", "Map your event to a space with capacity and floor plans."),
248
- icon: /* @__PURE__ */ u(f, { className: "h-4 w-4" }),
248
+ icon: /* @__PURE__ */ u(v, { className: "h-4 w-4" }),
249
249
  onClick: () => k("/venues/create")
250
250
  },
251
251
  {
252
252
  id: "open-registration",
253
253
  label: e("eventfullymanaged.dashboard.nextSteps.openRegistration", "Open registration"),
254
254
  description: e("eventfullymanaged.dashboard.nextSteps.openRegistrationDesc", "Set up ticket types and track attendee sign-ups."),
255
- icon: /* @__PURE__ */ u(v, { className: "h-4 w-4" }),
255
+ icon: /* @__PURE__ */ u(w, { className: "h-4 w-4" }),
256
256
  onClick: () => k("/registration")
257
257
  },
258
258
  {
259
259
  id: "invite-sponsors",
260
260
  label: e("eventfullymanaged.dashboard.nextSteps.inviteSponsors", "Onboard sponsors"),
261
261
  description: e("eventfullymanaged.dashboard.nextSteps.inviteSponsorsDesc", "Add sponsors and start tracking value and leads."),
262
- icon: /* @__PURE__ */ u(g, { className: "h-4 w-4" }),
262
+ icon: /* @__PURE__ */ u(S, { className: "h-4 w-4" }),
263
263
  onClick: () => k("/sponsors")
264
264
  }
265
265
  ]