@burdenoff/microfe-headshotmarketing 2026.719.1 → 2026.719.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.
@@ -0,0 +1,617 @@
1
+ import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCancelRegistrationMutation as t, useHeadshotmarketingCheckInAttendeeMutation as n, useHeadshotmarketingDeleteEventMutation as r, useHeadshotmarketingEventByIdQuery as i, useHeadshotmarketingUpdateEventMutation as ee } from "../../../generated/wspace-operations.js";
2
+ import { useHeadshotMarketing as a } from "../../context/HeadshotMarketingContext.js";
3
+ import { formatNumber as o, formatPercentage as s, joinPath as c } from "../../utils/helpers.js";
4
+ import { HeadshotmarketingEventStatus as l, HeadshotmarketingEventType as u } from "../../../generated/wspace-types.js";
5
+ import { PageLayout as d } from "../../components/PageLayout.js";
6
+ import { StatCard as f } from "../../components/StatCard.js";
7
+ import { StatusBadge as p } from "../../components/StatusBadge.js";
8
+ import { EmptyState as m } from "../../components/EmptyState.js";
9
+ import { Modal as h } from "../../components/Modal.js";
10
+ import { QueryStateBoundary as g } from "../../components/QueryStateBoundary.js";
11
+ import "../../components/index.js";
12
+ import { useMemo as _, useState as v } from "react";
13
+ import { ArrowLeft as y, ArrowUpRight as te, CalendarClock as ne, Check as re, Clock as ie, Edit as ae, Gauge as oe, MapPin as se, Tag as ce, Ticket as le, Trash2 as b, UserCheck as x, Users as S, Video as C, X as w } from "lucide-react";
14
+ import { useParams as T } from "react-router-dom";
15
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
16
+ import { EmphasisPanel as k, PagePurpose as A } from "@burdenoff/fe-libs/ui";
17
+ //#region src/headshotmarketing/pages/events/EventDetailsPage.tsx
18
+ var j = [{ query: e }], M = [
19
+ {
20
+ value: l.Draft,
21
+ label: "Draft"
22
+ },
23
+ {
24
+ value: l.Published,
25
+ label: "Published"
26
+ },
27
+ {
28
+ value: l.RegistrationOpen,
29
+ label: "Registration Open"
30
+ },
31
+ {
32
+ value: l.RegistrationClosed,
33
+ label: "Registration Closed"
34
+ },
35
+ {
36
+ value: l.InProgress,
37
+ label: "In Progress"
38
+ },
39
+ {
40
+ value: l.Completed,
41
+ label: "Completed"
42
+ },
43
+ {
44
+ value: l.Cancelled,
45
+ label: "Cancelled"
46
+ }
47
+ ], N = [
48
+ {
49
+ value: u.Webinar,
50
+ label: "Webinar"
51
+ },
52
+ {
53
+ value: u.Conference,
54
+ label: "Conference"
55
+ },
56
+ {
57
+ value: u.Workshop,
58
+ label: "Workshop"
59
+ },
60
+ {
61
+ value: u.Meetup,
62
+ label: "Meetup"
63
+ },
64
+ {
65
+ value: u.Tradeshow,
66
+ label: "Tradeshow"
67
+ },
68
+ {
69
+ value: u.ProductLaunch,
70
+ label: "Product Launch"
71
+ },
72
+ {
73
+ value: u.Networking,
74
+ label: "Networking"
75
+ },
76
+ {
77
+ value: u.Other,
78
+ label: "Other"
79
+ }
80
+ ];
81
+ function P(e) {
82
+ try {
83
+ let t = new URL(e);
84
+ return t.protocol === "http:" || t.protocol === "https:";
85
+ } catch {
86
+ return !1;
87
+ }
88
+ }
89
+ function F(e) {
90
+ let t = new Date(e);
91
+ if (Number.isNaN(t.getTime())) return "";
92
+ let n = (e) => String(e).padStart(2, "0");
93
+ return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`;
94
+ }
95
+ function I(e, t) {
96
+ let n = new Date(e);
97
+ if (Number.isNaN(n.getTime())) return "Date to be announced";
98
+ let r = {
99
+ weekday: "short",
100
+ month: "short",
101
+ day: "numeric",
102
+ year: "numeric",
103
+ hour: "numeric",
104
+ minute: "2-digit"
105
+ };
106
+ if (t) try {
107
+ return new Intl.DateTimeFormat("en-US", {
108
+ ...r,
109
+ timeZone: t
110
+ }).format(n);
111
+ } catch {}
112
+ return new Intl.DateTimeFormat("en-US", r).format(n);
113
+ }
114
+ var L = () => {
115
+ let { navigate: e, basePath: l } = a(), { eventId: u } = T(), { data: L, loading: R, error: z, refetch: B } = i({
116
+ skip: !u,
117
+ variables: u ? { id: u } : void 0
118
+ }), [V, { loading: H }] = ee(), [U, { loading: W }] = r(), [ue, { loading: de }] = n(), [fe, { loading: pe }] = t(), [me, G] = v(!1), [K, q] = v(null), [J, Y] = v(null), X = L?.headshotmarketingEvent ?? null, Z = () => e(c(l, "events")), he = () => {
119
+ X && (Y(null), q({
120
+ title: X.title,
121
+ description: X.description ?? "",
122
+ type: X.type,
123
+ status: X.status,
124
+ startDate: F(X.startDate),
125
+ endDate: F(X.endDate),
126
+ timezone: X.timezone ?? "",
127
+ location: X.location ?? "",
128
+ virtualUrl: X.virtualUrl ?? "",
129
+ maxAttendees: X.maxAttendees ? String(X.maxAttendees) : ""
130
+ }), G(!0));
131
+ }, ge = async () => {
132
+ if (!(!u || !K)) {
133
+ if (!K.title.trim()) {
134
+ Y("Event title is required.");
135
+ return;
136
+ }
137
+ if (!K.startDate || !K.endDate) {
138
+ Y("Start and end date/time are required.");
139
+ return;
140
+ }
141
+ Y(null);
142
+ try {
143
+ await V({
144
+ variables: {
145
+ id: u,
146
+ input: {
147
+ title: K.title.trim(),
148
+ description: K.description || null,
149
+ type: K.type,
150
+ status: K.status,
151
+ startDate: new Date(K.startDate).toISOString(),
152
+ endDate: new Date(K.endDate).toISOString(),
153
+ timezone: K.timezone || null,
154
+ location: K.location || null,
155
+ virtualUrl: K.virtualUrl || null,
156
+ maxAttendees: K.maxAttendees ? Number(K.maxAttendees) : null
157
+ }
158
+ },
159
+ refetchQueries: j
160
+ }), G(!1), await B();
161
+ } catch (e) {
162
+ Y(e instanceof Error ? e.message : "Failed to update event.");
163
+ }
164
+ }
165
+ }, _e = async () => {
166
+ if (!(!u || !X) && window.confirm(`Delete event "${X.title}"? This cannot be undone.`)) {
167
+ Y(null);
168
+ try {
169
+ await U({
170
+ variables: { id: u },
171
+ refetchQueries: j,
172
+ awaitRefetchQueries: !0
173
+ }), Z();
174
+ } catch (e) {
175
+ Y(e instanceof Error ? e.message : "Failed to delete event.");
176
+ }
177
+ }
178
+ }, Q = async (e) => {
179
+ Y(null);
180
+ try {
181
+ await ue({ variables: { registrationId: e } }), await B();
182
+ } catch (e) {
183
+ Y(e instanceof Error ? e.message : "Failed to check in attendee.");
184
+ }
185
+ }, ve = async (e) => {
186
+ Y(null);
187
+ try {
188
+ await fe({ variables: { registrationId: e } }), await B();
189
+ } catch (e) {
190
+ Y(e instanceof Error ? e.message : "Failed to cancel registration.");
191
+ }
192
+ }, ye = _(() => !X || !X.maxAttendees || X.maxAttendees <= 0 ? 0 : Math.min(X.registrationCount / X.maxAttendees * 100, 100), [X]), $ = H || W || de || pe;
193
+ return X ? /* @__PURE__ */ O(d, {
194
+ title: X.title,
195
+ description: X.description || void 0,
196
+ actions: /* @__PURE__ */ O("div", {
197
+ className: "flex flex-wrap items-center gap-2",
198
+ children: [
199
+ /* @__PURE__ */ D(p, { status: X.status.toLowerCase() }),
200
+ /* @__PURE__ */ O("button", {
201
+ onClick: Z,
202
+ className: "inline-flex items-center gap-2 rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
203
+ children: [/* @__PURE__ */ D(y, { className: "h-4 w-4" }), "Back"]
204
+ }),
205
+ /* @__PURE__ */ O("button", {
206
+ onClick: he,
207
+ disabled: $,
208
+ className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-3 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
209
+ children: [/* @__PURE__ */ D(ae, { className: "h-4 w-4" }), "Manage"]
210
+ }),
211
+ /* @__PURE__ */ O("button", {
212
+ onClick: () => void _e(),
213
+ disabled: $,
214
+ className: "inline-flex items-center gap-2 rounded-md border border-status-error-border/40 bg-status-error-bg/10 px-3 py-2 text-sm font-medium text-status-error-text hover:bg-status-error-bg/20 disabled:opacity-60",
215
+ children: [/* @__PURE__ */ D(b, { className: "h-4 w-4" }), "Delete"]
216
+ })
217
+ ]
218
+ }),
219
+ children: [
220
+ /* @__PURE__ */ D(A, { children: "Full detail view for this event — schedule, location, speakers and live registration status. Use Manage to edit details or move the event through its lifecycle (Draft → Published → Registration Open → In Progress → Completed)." }),
221
+ J && /* @__PURE__ */ D("div", {
222
+ className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
223
+ children: J
224
+ }),
225
+ /* @__PURE__ */ D(k, { children: /* @__PURE__ */ O("div", {
226
+ className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
227
+ children: [
228
+ /* @__PURE__ */ D(f, {
229
+ featured: !0,
230
+ title: "Registrations",
231
+ value: o(X.registrationCount),
232
+ icon: /* @__PURE__ */ D(le, { className: "h-5 w-5" })
233
+ }),
234
+ /* @__PURE__ */ D(f, {
235
+ title: "Capacity",
236
+ value: X.maxAttendees ? o(X.maxAttendees) : "—",
237
+ icon: /* @__PURE__ */ D(S, { className: "h-5 w-5" })
238
+ }),
239
+ /* @__PURE__ */ D(f, {
240
+ title: "Fill Rate",
241
+ value: X.maxAttendees ? s(ye, 0) : "N/A",
242
+ icon: /* @__PURE__ */ D(oe, { className: "h-5 w-5" })
243
+ }),
244
+ /* @__PURE__ */ D(f, {
245
+ title: "Speakers",
246
+ value: X.speakers.length,
247
+ icon: /* @__PURE__ */ D(x, { className: "h-5 w-5" })
248
+ })
249
+ ]
250
+ }) }),
251
+ X.coverImageUrl && /* @__PURE__ */ D("div", {
252
+ className: "overflow-hidden rounded-xl border border-border-seam bg-bg-sunken",
253
+ children: /* @__PURE__ */ D("img", {
254
+ src: X.coverImageUrl,
255
+ alt: "",
256
+ className: "h-56 w-full object-cover"
257
+ })
258
+ }),
259
+ /* @__PURE__ */ O("div", {
260
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
261
+ children: [/* @__PURE__ */ O("div", {
262
+ className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop lg:col-span-2",
263
+ children: [/* @__PURE__ */ D("h4", {
264
+ className: "mb-4 text-sm font-semibold text-text-primary",
265
+ children: "Schedule & Location"
266
+ }), /* @__PURE__ */ O("div", {
267
+ className: "space-y-3 text-sm",
268
+ children: [
269
+ /* @__PURE__ */ O("div", {
270
+ className: "flex items-start gap-2 text-text-secondary",
271
+ children: [/* @__PURE__ */ D(ie, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
272
+ className: "text-text-primary",
273
+ children: I(X.startDate, X.timezone)
274
+ }), /* @__PURE__ */ O("p", {
275
+ className: "text-xs",
276
+ children: [
277
+ "to ",
278
+ I(X.endDate, X.timezone),
279
+ X.timezone ? ` (${X.timezone})` : ""
280
+ ]
281
+ })] })]
282
+ }),
283
+ /* @__PURE__ */ O("div", {
284
+ className: "flex items-center gap-2 text-text-secondary",
285
+ children: [X.virtualUrl ? /* @__PURE__ */ D(C, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ D(se, { className: "h-4 w-4 shrink-0" }), X.virtualUrl && P(X.virtualUrl) ? /* @__PURE__ */ O("a", {
286
+ href: X.virtualUrl,
287
+ target: "_blank",
288
+ rel: "noopener noreferrer",
289
+ className: "inline-flex items-center gap-1 text-action-primary-bg hover:underline",
290
+ children: [X.virtualUrl, /* @__PURE__ */ D(te, { className: "h-3.5 w-3.5" })]
291
+ }) : X.virtualUrl ? /* @__PURE__ */ D("span", { children: X.virtualUrl }) : /* @__PURE__ */ D("span", { children: X.location || "Location TBD" })]
292
+ }),
293
+ X.tags && X.tags.length > 0 && /* @__PURE__ */ O("div", {
294
+ className: "flex flex-wrap items-center gap-1.5 pt-2",
295
+ children: [/* @__PURE__ */ D(ce, { className: "h-3.5 w-3.5 text-text-secondary" }), X.tags.map((e) => /* @__PURE__ */ D("span", {
296
+ className: "inline-flex items-center rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-primary",
297
+ children: e
298
+ }, e))]
299
+ })
300
+ ]
301
+ })]
302
+ }), /* @__PURE__ */ O("div", {
303
+ className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
304
+ children: [/* @__PURE__ */ O("h4", {
305
+ className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
306
+ children: [/* @__PURE__ */ D(ne, { className: "h-4 w-4 text-text-secondary" }), "Type"]
307
+ }), /* @__PURE__ */ D("p", {
308
+ className: "text-sm text-text-primary",
309
+ children: N.find((e) => e.value === X.type)?.label ?? X.type
310
+ })]
311
+ })]
312
+ }),
313
+ /* @__PURE__ */ O("div", {
314
+ className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
315
+ children: [/* @__PURE__ */ D("h4", {
316
+ className: "mb-4 text-sm font-semibold text-text-primary",
317
+ children: "Speakers"
318
+ }), X.speakers.length === 0 ? /* @__PURE__ */ D("p", {
319
+ className: "py-4 text-center text-sm text-text-secondary",
320
+ children: "No speakers added yet."
321
+ }) : /* @__PURE__ */ D("div", {
322
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
323
+ children: X.speakers.map((e) => /* @__PURE__ */ O("div", {
324
+ className: "flex items-start gap-3 rounded-lg border border-border-subtle p-4",
325
+ children: [/* @__PURE__ */ D("div", {
326
+ className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-action-primary-bg/10 text-sm font-semibold text-primary",
327
+ children: e.name.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase()
328
+ }), /* @__PURE__ */ O("div", {
329
+ className: "min-w-0",
330
+ children: [
331
+ /* @__PURE__ */ D("p", {
332
+ className: "truncate text-sm font-semibold text-text-primary",
333
+ children: e.name
334
+ }),
335
+ (e.title || e.company) && /* @__PURE__ */ D("p", {
336
+ className: "truncate text-xs text-text-secondary",
337
+ children: [e.title, e.company].filter(Boolean).join(" · ")
338
+ }),
339
+ e.topic && /* @__PURE__ */ O("p", {
340
+ className: "mt-1 text-xs text-text-secondary",
341
+ children: ["Topic: ", e.topic]
342
+ })
343
+ ]
344
+ })]
345
+ }, e.id))
346
+ })]
347
+ }),
348
+ /* @__PURE__ */ O("div", {
349
+ className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
350
+ children: [/* @__PURE__ */ O("h4", {
351
+ className: "mb-4 text-sm font-semibold text-text-primary",
352
+ children: [
353
+ "Registrations (",
354
+ X.registrations.length,
355
+ ")"
356
+ ]
357
+ }), X.registrations.length === 0 ? /* @__PURE__ */ D("p", {
358
+ className: "py-4 text-center text-sm text-text-secondary",
359
+ children: "No registrations yet."
360
+ }) : /* @__PURE__ */ D("div", {
361
+ className: "overflow-x-auto",
362
+ children: /* @__PURE__ */ O("table", {
363
+ className: "w-full text-sm",
364
+ children: [/* @__PURE__ */ D("thead", { children: /* @__PURE__ */ O("tr", {
365
+ className: "border-b border-border-subtle text-left text-xs text-text-secondary",
366
+ children: [
367
+ /* @__PURE__ */ D("th", {
368
+ className: "py-2 pr-4 font-medium",
369
+ children: "Attendee"
370
+ }),
371
+ /* @__PURE__ */ D("th", {
372
+ className: "py-2 pr-4 font-medium",
373
+ children: "Company"
374
+ }),
375
+ /* @__PURE__ */ D("th", {
376
+ className: "py-2 pr-4 font-medium",
377
+ children: "Status"
378
+ }),
379
+ /* @__PURE__ */ D("th", {
380
+ className: "py-2 pr-4 font-medium",
381
+ children: "Actions"
382
+ })
383
+ ]
384
+ }) }), /* @__PURE__ */ D("tbody", { children: X.registrations.map((e) => {
385
+ let t = e.status.toLowerCase(), n = e.status === "REGISTERED" || e.status === "CONFIRMED" || e.status === "WAITLISTED", r = e.status !== "CANCELLED" && e.status !== "CHECKED_IN";
386
+ return /* @__PURE__ */ O("tr", {
387
+ className: "border-b border-border-subtle/60 last:border-0",
388
+ children: [
389
+ /* @__PURE__ */ O("td", {
390
+ className: "py-2 pr-4",
391
+ children: [/* @__PURE__ */ D("p", {
392
+ className: "font-medium text-text-primary",
393
+ children: e.attendeeName
394
+ }), /* @__PURE__ */ D("p", {
395
+ className: "text-xs text-text-secondary",
396
+ children: e.attendeeEmail
397
+ })]
398
+ }),
399
+ /* @__PURE__ */ D("td", {
400
+ className: "py-2 pr-4 text-text-secondary",
401
+ children: e.attendeeCompany || "—"
402
+ }),
403
+ /* @__PURE__ */ D("td", {
404
+ className: "py-2 pr-4",
405
+ children: /* @__PURE__ */ D(p, { status: t })
406
+ }),
407
+ /* @__PURE__ */ D("td", {
408
+ className: "py-2 pr-4",
409
+ children: /* @__PURE__ */ O("div", {
410
+ className: "flex items-center gap-2",
411
+ children: [n && /* @__PURE__ */ O("button", {
412
+ onClick: () => void Q(e.id),
413
+ disabled: $,
414
+ className: "inline-flex items-center gap-1 rounded-md border border-border-subtle px-2 py-1 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
415
+ children: [/* @__PURE__ */ D(re, { className: "h-3 w-3" }), "Check in"]
416
+ }), r && /* @__PURE__ */ O("button", {
417
+ onClick: () => void ve(e.id),
418
+ disabled: $,
419
+ className: "inline-flex items-center gap-1 rounded-md border border-status-error-border/40 px-2 py-1 text-xs font-medium text-status-error-text hover:bg-status-error-bg/10 disabled:opacity-60",
420
+ children: [/* @__PURE__ */ D(w, { className: "h-3 w-3" }), "Cancel"]
421
+ })]
422
+ })
423
+ })
424
+ ]
425
+ }, e.id);
426
+ }) })]
427
+ })
428
+ })]
429
+ }),
430
+ K && /* @__PURE__ */ D(h, {
431
+ open: me,
432
+ onClose: () => G(!1),
433
+ title: "Manage Event",
434
+ description: "Update event details or move it through its lifecycle.",
435
+ size: "lg",
436
+ footer: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("button", {
437
+ onClick: () => G(!1),
438
+ className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
439
+ children: "Cancel"
440
+ }), /* @__PURE__ */ D("button", {
441
+ onClick: () => void ge(),
442
+ disabled: H,
443
+ className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
444
+ children: H ? "Saving..." : "Save Changes"
445
+ })] }),
446
+ children: /* @__PURE__ */ O("div", {
447
+ className: "space-y-4",
448
+ children: [
449
+ /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
450
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
451
+ children: "Title"
452
+ }), /* @__PURE__ */ D("input", {
453
+ type: "text",
454
+ value: K.title,
455
+ onChange: (e) => q({
456
+ ...K,
457
+ title: e.target.value
458
+ }),
459
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
460
+ })] }),
461
+ /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
462
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
463
+ children: "Description"
464
+ }), /* @__PURE__ */ D("textarea", {
465
+ rows: 3,
466
+ value: K.description,
467
+ onChange: (e) => q({
468
+ ...K,
469
+ description: e.target.value
470
+ }),
471
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
472
+ })] }),
473
+ /* @__PURE__ */ O("div", {
474
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
475
+ children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
476
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
477
+ children: "Type"
478
+ }), /* @__PURE__ */ D("select", {
479
+ value: K.type,
480
+ onChange: (e) => q({
481
+ ...K,
482
+ type: e.target.value
483
+ }),
484
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
485
+ children: N.map((e) => /* @__PURE__ */ D("option", {
486
+ value: e.value,
487
+ children: e.label
488
+ }, e.value))
489
+ })] }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
490
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
491
+ children: "Status"
492
+ }), /* @__PURE__ */ D("select", {
493
+ value: K.status,
494
+ onChange: (e) => q({
495
+ ...K,
496
+ status: e.target.value
497
+ }),
498
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]",
499
+ children: M.map((e) => /* @__PURE__ */ D("option", {
500
+ value: e.value,
501
+ children: e.label
502
+ }, e.value))
503
+ })] })]
504
+ }),
505
+ /* @__PURE__ */ O("div", {
506
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
507
+ children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
508
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
509
+ children: "Start"
510
+ }), /* @__PURE__ */ D("input", {
511
+ type: "datetime-local",
512
+ value: K.startDate,
513
+ onChange: (e) => q({
514
+ ...K,
515
+ startDate: e.target.value
516
+ }),
517
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
518
+ })] }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
519
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
520
+ children: "End"
521
+ }), /* @__PURE__ */ D("input", {
522
+ type: "datetime-local",
523
+ value: K.endDate,
524
+ onChange: (e) => q({
525
+ ...K,
526
+ endDate: e.target.value
527
+ }),
528
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
529
+ })] })]
530
+ }),
531
+ /* @__PURE__ */ O("div", {
532
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
533
+ children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
534
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
535
+ children: "Location"
536
+ }), /* @__PURE__ */ D("input", {
537
+ type: "text",
538
+ value: K.location,
539
+ onChange: (e) => q({
540
+ ...K,
541
+ location: e.target.value
542
+ }),
543
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
544
+ })] }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
545
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
546
+ children: "Virtual URL"
547
+ }), /* @__PURE__ */ D("input", {
548
+ type: "url",
549
+ value: K.virtualUrl,
550
+ onChange: (e) => q({
551
+ ...K,
552
+ virtualUrl: e.target.value
553
+ }),
554
+ placeholder: "https://",
555
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
556
+ })] })]
557
+ }),
558
+ /* @__PURE__ */ O("div", {
559
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
560
+ children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
561
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
562
+ children: "Timezone (IANA)"
563
+ }), /* @__PURE__ */ D("input", {
564
+ type: "text",
565
+ value: K.timezone,
566
+ onChange: (e) => q({
567
+ ...K,
568
+ timezone: e.target.value
569
+ }),
570
+ placeholder: "America/New_York",
571
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
572
+ })] }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("label", {
573
+ className: "mb-1.5 block text-sm font-medium text-text-primary",
574
+ children: "Max Attendees"
575
+ }), /* @__PURE__ */ D("input", {
576
+ type: "number",
577
+ min: 0,
578
+ value: K.maxAttendees,
579
+ onChange: (e) => q({
580
+ ...K,
581
+ maxAttendees: e.target.value
582
+ }),
583
+ className: "w-full rounded-md border border-border-subtle bg-bg-surface px-4 py-2.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]"
584
+ })] })]
585
+ }),
586
+ J && /* @__PURE__ */ D("p", {
587
+ className: "text-sm text-status-error-text",
588
+ children: J
589
+ })
590
+ ]
591
+ })
592
+ })
593
+ ]
594
+ }) : /* @__PURE__ */ D(d, {
595
+ title: "Event Details",
596
+ children: /* @__PURE__ */ D(g, {
597
+ loading: R,
598
+ error: z,
599
+ onRetry: () => void B(),
600
+ hasData: !1,
601
+ children: /* @__PURE__ */ D(m, {
602
+ illustration: "empty-generic",
603
+ title: "Event not found",
604
+ description: "The event you're looking for doesn't exist or has been removed.",
605
+ action: /* @__PURE__ */ O("button", {
606
+ onClick: Z,
607
+ className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90",
608
+ children: [/* @__PURE__ */ D(y, { className: "h-4 w-4" }), "Back to Events"]
609
+ })
610
+ })
611
+ })
612
+ });
613
+ };
614
+ //#endregion
615
+ export { L as EventDetailsPage };
616
+
617
+ //# sourceMappingURL=EventDetailsPage.js.map