@burdenoff/microfe-headshotmarketing 2026.1203.1 → 2026.1203.3

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.
@@ -1,85 +1,85 @@
1
- import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCancelRegistrationMutation as t, useHeadshotmarketingCheckInAttendeeMutation as n, useHeadshotmarketingDeleteEventMutation as r, useHeadshotmarketingEventByIdQuery as ee, useHeadshotmarketingUpdateEventMutation as i } from "../../../generated/wspace-operations.js";
2
- import { HeadshotmarketingEventStatus as a, HeadshotmarketingEventType as o } from "../../../generated/wspace-types.js";
1
+ import { HeadshotmarketingBootstrapDataDocument as e, useHeadshotmarketingCancelRegistrationMutation as t, useHeadshotmarketingCheckInAttendeeMutation as n, useHeadshotmarketingDeleteEventMutation as r, useHeadshotmarketingEventByIdQuery as ee, useHeadshotmarketingEventfullyManagedEventsQuery as te, useHeadshotmarketingLinkEventfullyManagedEventMutation as ne, useHeadshotmarketingSyncEventfullyManagedEventMutation as re, useHeadshotmarketingUnlinkEventfullyManagedEventMutation as i, useHeadshotmarketingUpdateEventMutation as a } from "../../../generated/wspace-operations.js";
2
+ import { HeadshotmarketingEventStatus as o, HeadshotmarketingEventSyncDirection as s, HeadshotmarketingEventType as c } from "../../../generated/wspace-types.js";
3
3
  import "../../components/index.js";
4
- import { formatNumber as s, formatPercentage as c, joinPath as l } from "../../utils/helpers.js";
5
- import { PageLayout as u } from "../../components/PageLayout.js";
6
- import { StatCard as d } from "../../components/StatCard.js";
7
- import { EmptyState as te } from "../../components/EmptyState.js";
8
- import { StatusBadge as f } from "../../components/StatusBadge.js";
9
- import { Modal as ne } from "../../components/Modal.js";
10
- import { QueryStateBoundary as re } from "../../components/QueryStateBoundary.js";
11
- import { EntityTagPicker as ie } from "../../components/EntityTagPicker.js";
12
- import { useHeadshotMarketing as ae } from "../../context/HeadshotMarketingContext.js";
13
- import { useMemo as p, useState as m } from "react";
14
- import { ArrowLeft as h, ArrowUpRight as g, CalendarClock as _, Check as v, Clock as y, Edit as b, Gauge as x, MapPin as oe, Tag as se, Ticket as ce, Trash2 as S, UserCheck as C, Users as w, Video as T, X as E } from "lucide-react";
15
- import { useParams as D } from "react-router";
16
- import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
17
- import { EmphasisPanel as j, PagePurpose as M, ThemedSelect as N, useConfirm as P } from "@burdenoff/fe-libs/ui";
4
+ import { formatNumber as l, formatPercentage as u, joinPath as d } from "../../utils/helpers.js";
5
+ import { PageLayout as f } from "../../components/PageLayout.js";
6
+ import { StatCard as p } from "../../components/StatCard.js";
7
+ import { EmptyState as m } from "../../components/EmptyState.js";
8
+ import { StatusBadge as h } from "../../components/StatusBadge.js";
9
+ import { Modal as ie } from "../../components/Modal.js";
10
+ import { QueryStateBoundary as ae } from "../../components/QueryStateBoundary.js";
11
+ import { EntityTagPicker as oe } from "../../components/EntityTagPicker.js";
12
+ import { useHeadshotMarketing as se } from "../../context/HeadshotMarketingContext.js";
13
+ import { useMemo as ce, useState as g } from "react";
14
+ import { ArrowLeft as _, ArrowUpRight as le, CalendarClock as ue, Check as de, Clock as fe, Edit as pe, Gauge as me, Link2 as v, MapPin as he, RefreshCw as ge, Tag as _e, Ticket as ve, Trash2 as ye, Unlink as be, UserCheck as xe, Users as Se, Video as y, X as b } from "lucide-react";
15
+ import { useParams as x } from "react-router";
16
+ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
17
+ import { EmphasisPanel as T, PagePurpose as E, ThemedSelect as D, useConfirm as O } from "@burdenoff/fe-libs/ui";
18
18
  // src/headshotmarketing/pages/events/EventDetailsPage.tsx
19
- var F = [{ query: e }], I = [
19
+ var k = [{ query: e }], A = [
20
20
  {
21
- value: a.Draft,
21
+ value: o.Draft,
22
22
  label: "Draft"
23
23
  },
24
24
  {
25
- value: a.Published,
25
+ value: o.Published,
26
26
  label: "Published"
27
27
  },
28
28
  {
29
- value: a.RegistrationOpen,
29
+ value: o.RegistrationOpen,
30
30
  label: "Registration Open"
31
31
  },
32
32
  {
33
- value: a.RegistrationClosed,
33
+ value: o.RegistrationClosed,
34
34
  label: "Registration Closed"
35
35
  },
36
36
  {
37
- value: a.InProgress,
37
+ value: o.InProgress,
38
38
  label: "In Progress"
39
39
  },
40
40
  {
41
- value: a.Completed,
41
+ value: o.Completed,
42
42
  label: "Completed"
43
43
  },
44
44
  {
45
- value: a.Cancelled,
45
+ value: o.Cancelled,
46
46
  label: "Cancelled"
47
47
  }
48
- ], L = [
48
+ ], j = [
49
49
  {
50
- value: o.Webinar,
50
+ value: c.Webinar,
51
51
  label: "Webinar"
52
52
  },
53
53
  {
54
- value: o.Conference,
54
+ value: c.Conference,
55
55
  label: "Conference"
56
56
  },
57
57
  {
58
- value: o.Workshop,
58
+ value: c.Workshop,
59
59
  label: "Workshop"
60
60
  },
61
61
  {
62
- value: o.Meetup,
62
+ value: c.Meetup,
63
63
  label: "Meetup"
64
64
  },
65
65
  {
66
- value: o.Tradeshow,
66
+ value: c.Tradeshow,
67
67
  label: "Tradeshow"
68
68
  },
69
69
  {
70
- value: o.ProductLaunch,
70
+ value: c.ProductLaunch,
71
71
  label: "Product Launch"
72
72
  },
73
73
  {
74
- value: o.Networking,
74
+ value: c.Networking,
75
75
  label: "Networking"
76
76
  },
77
77
  {
78
- value: o.Other,
78
+ value: c.Other,
79
79
  label: "Other"
80
80
  }
81
81
  ];
82
- function R(e) {
82
+ function M(e) {
83
83
  try {
84
84
  let t = new URL(e);
85
85
  return t.protocol === "http:" || t.protocol === "https:";
@@ -87,13 +87,13 @@ function R(e) {
87
87
  return !1;
88
88
  }
89
89
  }
90
- function z(e) {
90
+ function N(e) {
91
91
  let t = new Date(e);
92
92
  if (Number.isNaN(t.getTime())) return "";
93
93
  let n = (e) => String(e).padStart(2, "0");
94
94
  return `${t.getFullYear()}-${n(t.getMonth() + 1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`;
95
95
  }
96
- function B(e, t) {
96
+ function P(e, t) {
97
97
  let n = new Date(e);
98
98
  if (Number.isNaN(n.getTime())) return "Date to be announced";
99
99
  let r = {
@@ -112,240 +112,287 @@ function B(e, t) {
112
112
  } catch {}
113
113
  return new Intl.DateTimeFormat("en-US", r).format(n);
114
114
  }
115
- var V = () => {
116
- let e = P(), { navigate: a, basePath: o } = ae(), { eventId: V } = D(), { data: le, loading: H, error: U, refetch: W } = ee({
117
- skip: !V,
118
- variables: V ? { id: V } : void 0
119
- }), [ue, { loading: G }] = i(), [de, { loading: fe }] = r(), [pe, { loading: me }] = n(), [he, { loading: ge }] = t(), [_e, K] = m(!1), [q, J] = m(null), [Y, X] = m(null), Z = le?.headshotmarketingEvent ?? null, Q = () => a(l(o, "events")), ve = () => {
120
- Z && (X(null), J({
121
- title: Z.title,
122
- description: Z.description ?? "",
123
- type: Z.type,
124
- status: Z.status,
125
- startDate: z(Z.startDate),
126
- endDate: z(Z.endDate),
127
- timezone: Z.timezone ?? "",
128
- location: Z.location ?? "",
129
- virtualUrl: Z.virtualUrl ?? "",
130
- maxAttendees: Z.maxAttendees ? String(Z.maxAttendees) : ""
131
- }), K(!0));
132
- }, ye = async () => {
133
- if (V && q) {
134
- if (!q.title.trim()) X("Event title is required.");
135
- else if (!q.startDate || !q.endDate) X("Start and end date/time are required.");
115
+ var F = () => {
116
+ let e = O(), { navigate: o, basePath: c } = se(), { eventId: F } = x(), { data: Ce, loading: we, error: Te, refetch: I } = ee({
117
+ skip: !F,
118
+ variables: F ? { id: F } : void 0
119
+ }), [Ee, { loading: L }] = a(), [De, { loading: Oe }] = r(), [ke, { loading: Ae }] = n(), [je, { loading: Me }] = t(), [Ne, { loading: Pe }] = ne(), [Fe, { loading: Ie }] = i(), [Le, { loading: R }] = re(), z = te({
120
+ variables: {
121
+ limit: 50,
122
+ offset: 0
123
+ },
124
+ skip: !F,
125
+ fetchPolicy: "cache-and-network"
126
+ }), [Re, B] = g(!1), [V, H] = g(null), [U, W] = g(null), [G, ze] = g(""), [K, Be] = g(s.Bidirectional), [q, J] = g(null), Y = Ce?.headshotmarketingEvent ?? null, X = () => o(d(c, "events")), Ve = () => {
127
+ Y && (W(null), H({
128
+ title: Y.title,
129
+ description: Y.description ?? "",
130
+ type: Y.type,
131
+ status: Y.status,
132
+ startDate: N(Y.startDate),
133
+ endDate: N(Y.endDate),
134
+ timezone: Y.timezone ?? "",
135
+ location: Y.location ?? "",
136
+ virtualUrl: Y.virtualUrl ?? "",
137
+ maxAttendees: Y.maxAttendees ? String(Y.maxAttendees) : ""
138
+ }), B(!0));
139
+ }, He = async () => {
140
+ if (F && V) {
141
+ if (!V.title.trim()) W("Event title is required.");
142
+ else if (!V.startDate || !V.endDate) W("Start and end date/time are required.");
136
143
  else {
137
- X(null);
144
+ W(null);
138
145
  try {
139
- await ue({
146
+ await Ee({
140
147
  variables: {
141
- id: V,
148
+ id: F,
142
149
  input: {
143
- title: q.title.trim(),
144
- description: q.description || null,
145
- type: q.type,
146
- status: q.status,
147
- startDate: new Date(q.startDate).toISOString(),
148
- endDate: new Date(q.endDate).toISOString(),
149
- timezone: q.timezone || null,
150
- location: q.location || null,
151
- virtualUrl: q.virtualUrl || null,
152
- maxAttendees: q.maxAttendees ? Number(q.maxAttendees) : null
150
+ title: V.title.trim(),
151
+ description: V.description || null,
152
+ type: V.type,
153
+ status: V.status,
154
+ startDate: new Date(V.startDate).toISOString(),
155
+ endDate: new Date(V.endDate).toISOString(),
156
+ timezone: V.timezone || null,
157
+ location: V.location || null,
158
+ virtualUrl: V.virtualUrl || null,
159
+ maxAttendees: V.maxAttendees ? Number(V.maxAttendees) : null
153
160
  }
154
161
  },
155
- refetchQueries: F
156
- }), K(!1), await W();
162
+ refetchQueries: k
163
+ }), B(!1), await I();
157
164
  } catch (e) {
158
- X(e instanceof Error ? e.message : "Failed to update event.");
165
+ W(e instanceof Error ? e.message : "Failed to update event.");
159
166
  }
160
167
  }
161
168
  }
162
- }, be = async () => {
163
- if (V && Z && await e({
164
- title: `Delete event "${Z.title}"?`,
169
+ }, Ue = async () => {
170
+ if (F && Y && await e({
171
+ title: `Delete event "${Y.title}"?`,
165
172
  description: "This cannot be undone.",
166
173
  tone: "danger",
167
174
  confirmLabel: "Delete event"
168
175
  })) {
169
- X(null);
176
+ W(null);
170
177
  try {
171
- await de({
172
- variables: { id: V },
173
- refetchQueries: F,
178
+ await De({
179
+ variables: { id: F },
180
+ refetchQueries: k,
174
181
  awaitRefetchQueries: !0
175
- }), Q();
182
+ }), X();
176
183
  } catch (e) {
177
- X(e instanceof Error ? e.message : "Failed to delete event.");
184
+ W(e instanceof Error ? e.message : "Failed to delete event.");
178
185
  }
179
186
  }
180
- }, xe = async (e) => {
181
- X(null);
187
+ }, We = async (e) => {
188
+ W(null);
182
189
  try {
183
- await pe({ variables: { registrationId: e } }), await W();
190
+ await ke({ variables: { registrationId: e } }), await I();
184
191
  } catch (e) {
185
- X(e instanceof Error ? e.message : "Failed to check in attendee.");
192
+ W(e instanceof Error ? e.message : "Failed to check in attendee.");
186
193
  }
187
- }, Se = async (e) => {
188
- X(null);
194
+ }, Ge = async (e) => {
195
+ W(null);
189
196
  try {
190
- await he({ variables: { registrationId: e } }), await W();
197
+ await je({ variables: { registrationId: e } }), await I();
191
198
  } catch (e) {
192
- X(e instanceof Error ? e.message : "Failed to cancel registration.");
199
+ W(e instanceof Error ? e.message : "Failed to cancel registration.");
193
200
  }
194
- }, Ce = p(() => !Z || !Z.maxAttendees || Z.maxAttendees <= 0 ? 0 : Math.min(Z.registrationCount / Z.maxAttendees * 100, 100), [Z]), $ = G || fe || me || ge;
195
- return Z ? /* @__PURE__ */ A(u, {
196
- title: Z.title,
197
- description: Z.description || void 0,
198
- actions: /* @__PURE__ */ A("div", {
201
+ }, Z = async (e) => {
202
+ if (F) {
203
+ if (!e && !G) W("Select an EventfullyManaged event to link.");
204
+ else {
205
+ W(null), J(null);
206
+ try {
207
+ await Ne({ variables: {
208
+ eventId: F,
209
+ eventfullyManagedEventId: e ? void 0 : G,
210
+ createRemoteIfMissing: e
211
+ } }), await I(), await z.refetch(), J("Event linked to EventfullyManaged.");
212
+ } catch (e) {
213
+ W(e instanceof Error ? e.message : "Failed to link EventfullyManaged event.");
214
+ }
215
+ }
216
+ }
217
+ }, Ke = async () => {
218
+ if (F) {
219
+ W(null), J(null);
220
+ try {
221
+ await Fe({ variables: { eventId: F } }), await I(), J("Event unlinked from EventfullyManaged.");
222
+ } catch (e) {
223
+ W(e instanceof Error ? e.message : "Failed to unlink EventfullyManaged event.");
224
+ }
225
+ }
226
+ }, qe = async () => {
227
+ if (F) {
228
+ W(null), J(null);
229
+ try {
230
+ let e = await Le({ variables: {
231
+ eventId: F,
232
+ direction: K
233
+ } });
234
+ await I();
235
+ let t = e.data?.headshotmarketingSyncEventfullyManagedEvent;
236
+ t && J(`Synced (${t.direction}): ${t.speakersPulled} speakers pulled / ${t.speakersPushed} pushed, ${t.registrationsPulled} registrations pulled / ${t.registrationsPushed} pushed, ${t.contactsUpserted} CRM contacts upserted, ${t.checkInsPulled} check-ins pulled / ${t.checkInsPushed} pushed.`);
237
+ } catch (e) {
238
+ W(e instanceof Error ? e.message : "Failed to sync with EventfullyManaged.");
239
+ }
240
+ }
241
+ }, Je = ce(() => !Y || !Y.maxAttendees || Y.maxAttendees <= 0 ? 0 : Math.min(Y.registrationCount / Y.maxAttendees * 100, 100), [Y]), Q = z.data?.headshotmarketingEventfullyManagedEvents ?? [], $ = L || Oe || Ae || Me || Pe || Ie || R;
242
+ return Y ? /* @__PURE__ */ w(f, {
243
+ title: Y.title,
244
+ description: Y.description || void 0,
245
+ actions: /* @__PURE__ */ w("div", {
199
246
  className: "flex flex-wrap items-center gap-2",
200
247
  children: [
201
- /* @__PURE__ */ k(f, { status: Z.status.toLowerCase() }),
202
- /* @__PURE__ */ A("button", {
203
- onClick: Q,
248
+ /* @__PURE__ */ C(h, { status: Y.status.toLowerCase() }),
249
+ /* @__PURE__ */ w("button", {
250
+ onClick: X,
204
251
  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",
205
- children: [/* @__PURE__ */ k(h, { className: "h-4 w-4" }), "Back"]
252
+ children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Back"]
206
253
  }),
207
- /* @__PURE__ */ A("button", {
208
- onClick: ve,
254
+ /* @__PURE__ */ w("button", {
255
+ onClick: Ve,
209
256
  disabled: $,
210
257
  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",
211
- children: [/* @__PURE__ */ k(b, { className: "h-4 w-4" }), "Manage"]
258
+ children: [/* @__PURE__ */ C(pe, { className: "h-4 w-4" }), "Manage"]
212
259
  }),
213
- /* @__PURE__ */ A("button", {
214
- onClick: () => void be(),
260
+ /* @__PURE__ */ w("button", {
261
+ onClick: () => void Ue(),
215
262
  disabled: $,
216
263
  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",
217
- children: [/* @__PURE__ */ k(S, { className: "h-4 w-4" }), "Delete"]
264
+ children: [/* @__PURE__ */ C(ye, { className: "h-4 w-4" }), "Delete"]
218
265
  })
219
266
  ]
220
267
  }),
221
268
  children: [
222
- /* @__PURE__ */ k(M, { 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)." }),
223
- Y && /* @__PURE__ */ k("div", {
269
+ /* @__PURE__ */ C(E, { 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)." }),
270
+ U && /* @__PURE__ */ C("div", {
224
271
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
225
- children: Y
272
+ children: U
226
273
  }),
227
- /* @__PURE__ */ k(j, { children: /* @__PURE__ */ A("div", {
274
+ /* @__PURE__ */ C(T, { children: /* @__PURE__ */ w("div", {
228
275
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
229
276
  children: [
230
- /* @__PURE__ */ k(d, {
277
+ /* @__PURE__ */ C(p, {
231
278
  featured: !0,
232
279
  title: "Registrations",
233
- value: s(Z.registrationCount),
234
- icon: /* @__PURE__ */ k(ce, { className: "h-5 w-5" })
280
+ value: l(Y.registrationCount),
281
+ icon: /* @__PURE__ */ C(ve, { className: "h-5 w-5" })
235
282
  }),
236
- /* @__PURE__ */ k(d, {
283
+ /* @__PURE__ */ C(p, {
237
284
  title: "Capacity",
238
- value: Z.maxAttendees ? s(Z.maxAttendees) : "—",
239
- icon: /* @__PURE__ */ k(w, { className: "h-5 w-5" })
285
+ value: Y.maxAttendees ? l(Y.maxAttendees) : "—",
286
+ icon: /* @__PURE__ */ C(Se, { className: "h-5 w-5" })
240
287
  }),
241
- /* @__PURE__ */ k(d, {
288
+ /* @__PURE__ */ C(p, {
242
289
  title: "Fill Rate",
243
- value: Z.maxAttendees ? c(Ce, 0) : "N/A",
244
- icon: /* @__PURE__ */ k(x, { className: "h-5 w-5" })
290
+ value: Y.maxAttendees ? u(Je, 0) : "N/A",
291
+ icon: /* @__PURE__ */ C(me, { className: "h-5 w-5" })
245
292
  }),
246
- /* @__PURE__ */ k(d, {
293
+ /* @__PURE__ */ C(p, {
247
294
  title: "Speakers",
248
- value: Z.speakers.length,
249
- icon: /* @__PURE__ */ k(C, { className: "h-5 w-5" })
295
+ value: Y.speakers.length,
296
+ icon: /* @__PURE__ */ C(xe, { className: "h-5 w-5" })
250
297
  })
251
298
  ]
252
299
  }) }),
253
- /* @__PURE__ */ k("div", {
300
+ /* @__PURE__ */ C("div", {
254
301
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
255
- children: /* @__PURE__ */ k(ie, {
302
+ children: /* @__PURE__ */ C(oe, {
256
303
  entityType: "HEADSHOTMARKETING_EVENT",
257
- entityId: Z.id
304
+ entityId: Y.id
258
305
  })
259
306
  }),
260
- Z.coverImageUrl && /* @__PURE__ */ k("div", {
307
+ Y.coverImageUrl && /* @__PURE__ */ C("div", {
261
308
  className: "overflow-hidden rounded-xl border border-border-seam bg-bg-sunken",
262
- children: /* @__PURE__ */ k("img", {
263
- src: Z.coverImageUrl,
309
+ children: /* @__PURE__ */ C("img", {
310
+ src: Y.coverImageUrl,
264
311
  alt: "",
265
312
  className: "h-56 w-full object-cover"
266
313
  })
267
314
  }),
268
- /* @__PURE__ */ A("div", {
315
+ /* @__PURE__ */ w("div", {
269
316
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
270
- children: [/* @__PURE__ */ A("div", {
317
+ children: [/* @__PURE__ */ w("div", {
271
318
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop lg:col-span-2",
272
- children: [/* @__PURE__ */ k("h4", {
319
+ children: [/* @__PURE__ */ C("h4", {
273
320
  className: "mb-4 text-sm font-semibold text-text-primary",
274
321
  children: "Schedule & Location"
275
- }), /* @__PURE__ */ A("div", {
322
+ }), /* @__PURE__ */ w("div", {
276
323
  className: "space-y-3 text-sm",
277
324
  children: [
278
- /* @__PURE__ */ A("div", {
325
+ /* @__PURE__ */ w("div", {
279
326
  className: "flex items-start gap-2 text-text-secondary",
280
- children: [/* @__PURE__ */ k(y, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
327
+ children: [/* @__PURE__ */ C(fe, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
281
328
  className: "text-text-primary",
282
- children: B(Z.startDate, Z.timezone)
283
- }), /* @__PURE__ */ A("p", {
329
+ children: P(Y.startDate, Y.timezone)
330
+ }), /* @__PURE__ */ w("p", {
284
331
  className: "text-xs",
285
332
  children: [
286
333
  "to ",
287
- B(Z.endDate, Z.timezone),
288
- Z.timezone ? ` (${Z.timezone})` : ""
334
+ P(Y.endDate, Y.timezone),
335
+ Y.timezone ? ` (${Y.timezone})` : ""
289
336
  ]
290
337
  })] })]
291
338
  }),
292
- /* @__PURE__ */ A("div", {
339
+ /* @__PURE__ */ w("div", {
293
340
  className: "flex items-center gap-2 text-text-secondary",
294
- children: [Z.virtualUrl ? /* @__PURE__ */ k(T, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ k(oe, { className: "h-4 w-4 shrink-0" }), Z.virtualUrl && R(Z.virtualUrl) ? /* @__PURE__ */ A("a", {
295
- href: Z.virtualUrl,
341
+ children: [Y.virtualUrl ? /* @__PURE__ */ C(y, { className: "h-4 w-4 shrink-0" }) : /* @__PURE__ */ C(he, { className: "h-4 w-4 shrink-0" }), Y.virtualUrl && M(Y.virtualUrl) ? /* @__PURE__ */ w("a", {
342
+ href: Y.virtualUrl,
296
343
  target: "_blank",
297
344
  rel: "noopener noreferrer",
298
345
  className: "inline-flex items-center gap-1 text-action-primary-bg hover:underline",
299
- children: [Z.virtualUrl, /* @__PURE__ */ k(g, { className: "h-3.5 w-3.5" })]
300
- }) : Z.virtualUrl ? /* @__PURE__ */ k("span", { children: Z.virtualUrl }) : /* @__PURE__ */ k("span", { children: Z.location || "Location TBD" })]
346
+ children: [Y.virtualUrl, /* @__PURE__ */ C(le, { className: "h-3.5 w-3.5" })]
347
+ }) : Y.virtualUrl ? /* @__PURE__ */ C("span", { children: Y.virtualUrl }) : /* @__PURE__ */ C("span", { children: Y.location || "Location TBD" })]
301
348
  }),
302
- Z.tags && Z.tags.length > 0 && /* @__PURE__ */ A("div", {
349
+ Y.tags && Y.tags.length > 0 && /* @__PURE__ */ w("div", {
303
350
  className: "flex flex-wrap items-center gap-1.5 pt-2",
304
- children: [/* @__PURE__ */ k(se, { className: "h-3.5 w-3.5 text-text-secondary" }), Z.tags.map((e) => /* @__PURE__ */ k("span", {
351
+ children: [/* @__PURE__ */ C(_e, { className: "h-3.5 w-3.5 text-text-secondary" }), Y.tags.map((e) => /* @__PURE__ */ C("span", {
305
352
  className: "inline-flex items-center rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-primary",
306
353
  children: e
307
354
  }, e))]
308
355
  })
309
356
  ]
310
357
  })]
311
- }), /* @__PURE__ */ A("div", {
358
+ }), /* @__PURE__ */ w("div", {
312
359
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
313
- children: [/* @__PURE__ */ A("h4", {
360
+ children: [/* @__PURE__ */ w("h4", {
314
361
  className: "mb-4 flex items-center gap-2 text-sm font-semibold text-text-primary",
315
- children: [/* @__PURE__ */ k(_, { className: "h-4 w-4 text-text-secondary" }), "Type"]
316
- }), /* @__PURE__ */ k("p", {
362
+ children: [/* @__PURE__ */ C(ue, { className: "h-4 w-4 text-text-secondary" }), "Type"]
363
+ }), /* @__PURE__ */ C("p", {
317
364
  className: "text-sm text-text-primary",
318
- children: L.find((e) => e.value === Z.type)?.label ?? Z.type
365
+ children: j.find((e) => e.value === Y.type)?.label ?? Y.type
319
366
  })]
320
367
  })]
321
368
  }),
322
- /* @__PURE__ */ A("div", {
369
+ /* @__PURE__ */ w("div", {
323
370
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
324
- children: [/* @__PURE__ */ k("h4", {
371
+ children: [/* @__PURE__ */ C("h4", {
325
372
  className: "mb-4 text-sm font-semibold text-text-primary",
326
373
  children: "Speakers"
327
- }), Z.speakers.length === 0 ? /* @__PURE__ */ k("p", {
374
+ }), Y.speakers.length === 0 ? /* @__PURE__ */ C("p", {
328
375
  className: "py-4 text-center text-sm text-text-secondary",
329
376
  children: "No speakers added yet."
330
- }) : /* @__PURE__ */ k("div", {
377
+ }) : /* @__PURE__ */ C("div", {
331
378
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
332
- children: Z.speakers.map((e) => /* @__PURE__ */ A("div", {
379
+ children: Y.speakers.map((e) => /* @__PURE__ */ w("div", {
333
380
  className: "flex items-start gap-3 rounded-lg border border-border-subtle p-4",
334
- children: [/* @__PURE__ */ k("div", {
381
+ children: [/* @__PURE__ */ C("div", {
335
382
  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",
336
383
  children: e.name.split(/\s+/).filter(Boolean).map((e) => e[0]).join("").slice(0, 2).toUpperCase()
337
- }), /* @__PURE__ */ A("div", {
384
+ }), /* @__PURE__ */ w("div", {
338
385
  className: "min-w-0",
339
386
  children: [
340
- /* @__PURE__ */ k("p", {
387
+ /* @__PURE__ */ C("p", {
341
388
  className: "truncate text-sm font-semibold text-text-primary",
342
389
  children: e.name
343
390
  }),
344
- (e.title || e.company) && /* @__PURE__ */ k("p", {
391
+ (e.title || e.company) && /* @__PURE__ */ C("p", {
345
392
  className: "truncate text-xs text-text-secondary",
346
393
  children: [e.title, e.company].filter(Boolean).join(" · ")
347
394
  }),
348
- e.topic && /* @__PURE__ */ A("p", {
395
+ e.topic && /* @__PURE__ */ w("p", {
349
396
  className: "mt-1 text-xs text-text-secondary",
350
397
  children: ["Topic: ", e.topic]
351
398
  })
@@ -354,79 +401,201 @@ var V = () => {
354
401
  }, e.id))
355
402
  })]
356
403
  }),
357
- /* @__PURE__ */ A("div", {
404
+ /* @__PURE__ */ w("div", {
405
+ "data-testid": "eventfully-managed-sync-card",
406
+ className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
407
+ children: [
408
+ /* @__PURE__ */ w("div", {
409
+ className: "mb-3 flex flex-wrap items-center justify-between gap-2",
410
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("h4", {
411
+ className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
412
+ children: [/* @__PURE__ */ C(v, { className: "h-4 w-4 text-primary" }), "EventfullyManaged Sync"]
413
+ }), /* @__PURE__ */ C("p", {
414
+ className: "text-xs text-text-secondary",
415
+ children: "Link this event to EventfullyManaged to synchronize metadata, speakers, registrations, CRM contacts, and check-ins."
416
+ })] }), Y.eventfullyManagedSyncStatus && /* @__PURE__ */ C(h, { status: Y.eventfullyManagedSyncStatus.toLowerCase() })]
417
+ }),
418
+ q && /* @__PURE__ */ C("div", {
419
+ role: "status",
420
+ className: "mb-3 rounded-md border border-status-success-border/40 bg-status-success-bg/10 px-3 py-2 text-xs text-status-success-text",
421
+ children: q
422
+ }),
423
+ Y.eventfullyManagedSyncError && /* @__PURE__ */ w("div", {
424
+ role: "alert",
425
+ className: "mb-3 rounded-md border border-status-error-border/40 bg-status-error-bg/10 px-3 py-2 text-xs text-status-error-text",
426
+ children: ["Last sync error: ", Y.eventfullyManagedSyncError]
427
+ }),
428
+ Y.eventfullyManagedEventId ? /* @__PURE__ */ w("div", {
429
+ className: "flex flex-wrap items-center justify-between gap-3",
430
+ children: [/* @__PURE__ */ w("div", {
431
+ className: "space-y-0.5 text-xs text-text-secondary",
432
+ children: [/* @__PURE__ */ w("p", { children: [
433
+ "Linked EventfullyManaged ID:",
434
+ " ",
435
+ /* @__PURE__ */ C("span", {
436
+ className: "font-mono font-medium text-text-primary",
437
+ children: Y.eventfullyManagedEventId
438
+ })
439
+ ] }), Y.eventfullyManagedLastSyncedAt && /* @__PURE__ */ w("p", { children: [
440
+ "Last synced:",
441
+ " ",
442
+ P(Y.eventfullyManagedLastSyncedAt, Y.timezone)
443
+ ] })]
444
+ }), /* @__PURE__ */ w("div", {
445
+ className: "flex flex-wrap items-center gap-2",
446
+ children: [
447
+ /* @__PURE__ */ w(D, {
448
+ "aria-label": "Sync direction",
449
+ value: K,
450
+ onChange: (e) => Be(e.target.value),
451
+ className: "rounded-md border border-border-subtle bg-bg-surface px-2.5 py-1.5 text-xs text-text-primary",
452
+ children: [
453
+ /* @__PURE__ */ C("option", {
454
+ value: s.Bidirectional,
455
+ children: "Bidirectional"
456
+ }),
457
+ /* @__PURE__ */ C("option", {
458
+ value: s.Pull,
459
+ children: "Pull from EventfullyManaged"
460
+ }),
461
+ /* @__PURE__ */ C("option", {
462
+ value: s.Push,
463
+ children: "Push to EventfullyManaged"
464
+ })
465
+ ]
466
+ }),
467
+ /* @__PURE__ */ w("button", {
468
+ type: "button",
469
+ "data-testid": "eventfully-sync-now",
470
+ onClick: () => void qe(),
471
+ disabled: $,
472
+ className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
473
+ children: [/* @__PURE__ */ C(ge, { className: R ? "h-3.5 w-3.5 animate-spin" : "h-3.5 w-3.5" }), R ? "Syncing…" : "Sync Now"]
474
+ }),
475
+ /* @__PURE__ */ w("button", {
476
+ type: "button",
477
+ "data-testid": "eventfully-unlink",
478
+ onClick: () => void Ke(),
479
+ disabled: $,
480
+ className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
481
+ children: [/* @__PURE__ */ C(be, { className: "h-3.5 w-3.5" }), "Unlink"]
482
+ })
483
+ ]
484
+ })]
485
+ }) : /* @__PURE__ */ w("div", {
486
+ className: "flex flex-wrap items-center gap-2",
487
+ children: [
488
+ /* @__PURE__ */ w(D, {
489
+ "aria-label": "Select EventfullyManaged event",
490
+ value: G,
491
+ onChange: (e) => ze(e.target.value),
492
+ className: "min-w-[14rem] flex-1 rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-xs text-text-primary",
493
+ children: [/* @__PURE__ */ C("option", {
494
+ value: "",
495
+ children: z.loading ? "Loading EventfullyManaged events…" : Q.length > 0 ? "Choose an EventfullyManaged event…" : "No existing EventfullyManaged events found"
496
+ }), Q.map((e) => /* @__PURE__ */ w("option", {
497
+ value: e.id,
498
+ children: [
499
+ e.name,
500
+ " (",
501
+ e.status,
502
+ ")"
503
+ ]
504
+ }, e.id))]
505
+ }),
506
+ /* @__PURE__ */ w("button", {
507
+ type: "button",
508
+ "data-testid": "eventfully-link-existing",
509
+ onClick: () => void Z(!1),
510
+ disabled: $ || !G,
511
+ className: "inline-flex items-center gap-1.5 rounded-md border border-border-subtle px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-bg-sunken disabled:opacity-60",
512
+ children: [/* @__PURE__ */ C(v, { className: "h-3.5 w-3.5" }), "Link Selected"]
513
+ }),
514
+ /* @__PURE__ */ C("button", {
515
+ type: "button",
516
+ "data-testid": "eventfully-create-and-link",
517
+ onClick: () => void Z(!0),
518
+ disabled: $,
519
+ className: "inline-flex items-center gap-1.5 rounded-md bg-action-primary-bg px-3 py-1.5 text-xs font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-60",
520
+ children: "Create & Link in EventfullyManaged"
521
+ })
522
+ ]
523
+ })
524
+ ]
525
+ }),
526
+ /* @__PURE__ */ w("div", {
358
527
  className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
359
- children: [/* @__PURE__ */ A("h4", {
528
+ children: [/* @__PURE__ */ w("h4", {
360
529
  className: "mb-4 text-sm font-semibold text-text-primary",
361
530
  children: [
362
531
  "Registrations (",
363
- Z.registrations.length,
532
+ Y.registrations.length,
364
533
  ")"
365
534
  ]
366
- }), Z.registrations.length === 0 ? /* @__PURE__ */ k("p", {
535
+ }), Y.registrations.length === 0 ? /* @__PURE__ */ C("p", {
367
536
  className: "py-4 text-center text-sm text-text-secondary",
368
537
  children: "No registrations yet."
369
- }) : /* @__PURE__ */ k("div", {
538
+ }) : /* @__PURE__ */ C("div", {
370
539
  className: "overflow-x-auto",
371
- children: /* @__PURE__ */ A("table", {
540
+ children: /* @__PURE__ */ w("table", {
372
541
  className: "w-full text-sm",
373
- children: [/* @__PURE__ */ k("thead", { children: /* @__PURE__ */ A("tr", {
542
+ children: [/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ w("tr", {
374
543
  className: "border-b border-border-subtle text-start text-xs text-text-secondary",
375
544
  children: [
376
- /* @__PURE__ */ k("th", {
545
+ /* @__PURE__ */ C("th", {
377
546
  className: "py-2 pe-4 font-medium",
378
547
  children: "Attendee"
379
548
  }),
380
- /* @__PURE__ */ k("th", {
549
+ /* @__PURE__ */ C("th", {
381
550
  className: "py-2 pe-4 font-medium",
382
551
  children: "Company"
383
552
  }),
384
- /* @__PURE__ */ k("th", {
553
+ /* @__PURE__ */ C("th", {
385
554
  className: "py-2 pe-4 font-medium",
386
555
  children: "Status"
387
556
  }),
388
- /* @__PURE__ */ k("th", {
557
+ /* @__PURE__ */ C("th", {
389
558
  className: "py-2 pe-4 font-medium",
390
559
  children: "Actions"
391
560
  })
392
561
  ]
393
- }) }), /* @__PURE__ */ k("tbody", { children: Z.registrations.map((e) => {
562
+ }) }), /* @__PURE__ */ C("tbody", { children: Y.registrations.map((e) => {
394
563
  let t = e.status.toLowerCase(), n = e.status === "REGISTERED" || e.status === "CONFIRMED" || e.status === "WAITLISTED", r = e.status !== "CANCELLED" && e.status !== "CHECKED_IN";
395
- return /* @__PURE__ */ A("tr", {
564
+ return /* @__PURE__ */ w("tr", {
396
565
  className: "border-b border-border-subtle/60 last:border-0",
397
566
  children: [
398
- /* @__PURE__ */ A("td", {
567
+ /* @__PURE__ */ w("td", {
399
568
  className: "py-2 pe-4",
400
- children: [/* @__PURE__ */ k("p", {
569
+ children: [/* @__PURE__ */ C("p", {
401
570
  className: "font-medium text-text-primary",
402
571
  children: e.attendeeName
403
- }), /* @__PURE__ */ k("p", {
572
+ }), /* @__PURE__ */ C("p", {
404
573
  className: "text-xs text-text-secondary",
405
574
  children: e.attendeeEmail
406
575
  })]
407
576
  }),
408
- /* @__PURE__ */ k("td", {
577
+ /* @__PURE__ */ C("td", {
409
578
  className: "py-2 pe-4 text-text-secondary",
410
579
  children: e.attendeeCompany || "—"
411
580
  }),
412
- /* @__PURE__ */ k("td", {
581
+ /* @__PURE__ */ C("td", {
413
582
  className: "py-2 pe-4",
414
- children: /* @__PURE__ */ k(f, { status: t })
583
+ children: /* @__PURE__ */ C(h, { status: t })
415
584
  }),
416
- /* @__PURE__ */ k("td", {
585
+ /* @__PURE__ */ C("td", {
417
586
  className: "py-2 pe-4",
418
- children: /* @__PURE__ */ A("div", {
587
+ children: /* @__PURE__ */ w("div", {
419
588
  className: "flex items-center gap-2",
420
- children: [n && /* @__PURE__ */ A("button", {
421
- onClick: () => void xe(e.id),
589
+ children: [n && /* @__PURE__ */ w("button", {
590
+ onClick: () => void We(e.id),
422
591
  disabled: $,
423
592
  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",
424
- children: [/* @__PURE__ */ k(v, { className: "h-3 w-3" }), "Check in"]
425
- }), r && /* @__PURE__ */ A("button", {
426
- onClick: () => void Se(e.id),
593
+ children: [/* @__PURE__ */ C(de, { className: "h-3 w-3" }), "Check in"]
594
+ }), r && /* @__PURE__ */ w("button", {
595
+ onClick: () => void Ge(e.id),
427
596
  disabled: $,
428
597
  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",
429
- children: [/* @__PURE__ */ k(E, { className: "h-3 w-3" }), "Cancel"]
598
+ children: [/* @__PURE__ */ C(b, { className: "h-3 w-3" }), "Cancel"]
430
599
  })]
431
600
  })
432
601
  })
@@ -436,190 +605,190 @@ var V = () => {
436
605
  })
437
606
  })]
438
607
  }),
439
- q && /* @__PURE__ */ k(ne, {
440
- open: _e,
441
- onClose: () => K(!1),
608
+ V && /* @__PURE__ */ C(ie, {
609
+ open: Re,
610
+ onClose: () => B(!1),
442
611
  title: "Manage Event",
443
612
  description: "Update event details or move it through its lifecycle.",
444
613
  size: "lg",
445
- footer: /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("button", {
446
- onClick: () => K(!1),
614
+ footer: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("button", {
615
+ onClick: () => B(!1),
447
616
  className: "rounded-md border border-border-subtle px-4 py-2 text-sm font-medium text-text-primary hover:bg-bg-sunken",
448
617
  children: "Cancel"
449
- }), /* @__PURE__ */ k("button", {
450
- onClick: () => void ye(),
451
- disabled: G,
618
+ }), /* @__PURE__ */ C("button", {
619
+ onClick: () => void He(),
620
+ disabled: L,
452
621
  className: "rounded-md bg-foreground px-4 py-2 text-sm font-medium text-background hover:bg-foreground/90 disabled:opacity-60",
453
- children: G ? "Saving..." : "Save Changes"
622
+ children: L ? "Saving..." : "Save Changes"
454
623
  })] }),
455
- children: /* @__PURE__ */ A("div", {
624
+ children: /* @__PURE__ */ w("div", {
456
625
  className: "space-y-4",
457
626
  children: [
458
- /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
627
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
459
628
  className: "mb-1.5 block text-sm font-medium text-text-primary",
460
629
  children: "Title"
461
- }), /* @__PURE__ */ k("input", {
630
+ }), /* @__PURE__ */ C("input", {
462
631
  type: "text",
463
- value: q.title,
464
- onChange: (e) => J({
465
- ...q,
632
+ value: V.title,
633
+ onChange: (e) => H({
634
+ ...V,
466
635
  title: e.target.value
467
636
  }),
468
637
  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)]"
469
638
  })] }),
470
- /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
639
+ /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
471
640
  className: "mb-1.5 block text-sm font-medium text-text-primary",
472
641
  children: "Description"
473
- }), /* @__PURE__ */ k("textarea", {
642
+ }), /* @__PURE__ */ C("textarea", {
474
643
  rows: 3,
475
- value: q.description,
476
- onChange: (e) => J({
477
- ...q,
644
+ value: V.description,
645
+ onChange: (e) => H({
646
+ ...V,
478
647
  description: e.target.value
479
648
  }),
480
649
  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)]"
481
650
  })] }),
482
- /* @__PURE__ */ A("div", {
651
+ /* @__PURE__ */ w("div", {
483
652
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
484
- children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
653
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
485
654
  className: "mb-1.5 block text-sm font-medium text-text-primary",
486
655
  children: "Type"
487
- }), /* @__PURE__ */ k(N, {
488
- value: q.type,
489
- onChange: (e) => J({
490
- ...q,
656
+ }), /* @__PURE__ */ C(D, {
657
+ value: V.type,
658
+ onChange: (e) => H({
659
+ ...V,
491
660
  type: e.target.value
492
661
  }),
493
662
  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)]",
494
- children: L.map((e) => /* @__PURE__ */ k("option", {
663
+ children: j.map((e) => /* @__PURE__ */ C("option", {
495
664
  value: e.value,
496
665
  children: e.label
497
666
  }, e.value))
498
- })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
667
+ })] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
499
668
  className: "mb-1.5 block text-sm font-medium text-text-primary",
500
669
  children: "Status"
501
- }), /* @__PURE__ */ k(N, {
502
- value: q.status,
503
- onChange: (e) => J({
504
- ...q,
670
+ }), /* @__PURE__ */ C(D, {
671
+ value: V.status,
672
+ onChange: (e) => H({
673
+ ...V,
505
674
  status: e.target.value
506
675
  }),
507
676
  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)]",
508
- children: I.map((e) => /* @__PURE__ */ k("option", {
677
+ children: A.map((e) => /* @__PURE__ */ C("option", {
509
678
  value: e.value,
510
679
  children: e.label
511
680
  }, e.value))
512
681
  })] })]
513
682
  }),
514
- /* @__PURE__ */ A("div", {
683
+ /* @__PURE__ */ w("div", {
515
684
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
516
- children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
685
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
517
686
  className: "mb-1.5 block text-sm font-medium text-text-primary",
518
687
  children: "Start"
519
- }), /* @__PURE__ */ k("input", {
688
+ }), /* @__PURE__ */ C("input", {
520
689
  type: "datetime-local",
521
- value: q.startDate,
522
- onChange: (e) => J({
523
- ...q,
690
+ value: V.startDate,
691
+ onChange: (e) => H({
692
+ ...V,
524
693
  startDate: e.target.value
525
694
  }),
526
695
  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)]"
527
- })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
696
+ })] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
528
697
  className: "mb-1.5 block text-sm font-medium text-text-primary",
529
698
  children: "End"
530
- }), /* @__PURE__ */ k("input", {
699
+ }), /* @__PURE__ */ C("input", {
531
700
  type: "datetime-local",
532
- value: q.endDate,
533
- onChange: (e) => J({
534
- ...q,
701
+ value: V.endDate,
702
+ onChange: (e) => H({
703
+ ...V,
535
704
  endDate: e.target.value
536
705
  }),
537
706
  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)]"
538
707
  })] })]
539
708
  }),
540
- /* @__PURE__ */ A("div", {
709
+ /* @__PURE__ */ w("div", {
541
710
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
542
- children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
711
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
543
712
  className: "mb-1.5 block text-sm font-medium text-text-primary",
544
713
  children: "Location"
545
- }), /* @__PURE__ */ k("input", {
714
+ }), /* @__PURE__ */ C("input", {
546
715
  type: "text",
547
- value: q.location,
548
- onChange: (e) => J({
549
- ...q,
716
+ value: V.location,
717
+ onChange: (e) => H({
718
+ ...V,
550
719
  location: e.target.value
551
720
  }),
552
721
  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)]"
553
- })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
722
+ })] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
554
723
  className: "mb-1.5 block text-sm font-medium text-text-primary",
555
724
  children: "Virtual URL"
556
- }), /* @__PURE__ */ k("input", {
725
+ }), /* @__PURE__ */ C("input", {
557
726
  type: "url",
558
- value: q.virtualUrl,
559
- onChange: (e) => J({
560
- ...q,
727
+ value: V.virtualUrl,
728
+ onChange: (e) => H({
729
+ ...V,
561
730
  virtualUrl: e.target.value
562
731
  }),
563
732
  placeholder: "https://",
564
733
  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)]"
565
734
  })] })]
566
735
  }),
567
- /* @__PURE__ */ A("div", {
736
+ /* @__PURE__ */ w("div", {
568
737
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
569
- children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
738
+ children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
570
739
  className: "mb-1.5 block text-sm font-medium text-text-primary",
571
740
  children: "Timezone (IANA)"
572
- }), /* @__PURE__ */ k("input", {
741
+ }), /* @__PURE__ */ C("input", {
573
742
  type: "text",
574
- value: q.timezone,
575
- onChange: (e) => J({
576
- ...q,
743
+ value: V.timezone,
744
+ onChange: (e) => H({
745
+ ...V,
577
746
  timezone: e.target.value
578
747
  }),
579
748
  placeholder: "America/New_York",
580
749
  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)]"
581
- })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
750
+ })] }), /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("label", {
582
751
  className: "mb-1.5 block text-sm font-medium text-text-primary",
583
752
  children: "Max Attendees"
584
- }), /* @__PURE__ */ k("input", {
753
+ }), /* @__PURE__ */ C("input", {
585
754
  type: "number",
586
755
  min: 0,
587
- value: q.maxAttendees,
588
- onChange: (e) => J({
589
- ...q,
756
+ value: V.maxAttendees,
757
+ onChange: (e) => H({
758
+ ...V,
590
759
  maxAttendees: e.target.value
591
760
  }),
592
761
  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)]"
593
762
  })] })]
594
763
  }),
595
- Y && /* @__PURE__ */ k("p", {
764
+ U && /* @__PURE__ */ C("p", {
596
765
  className: "text-sm text-status-error-text",
597
- children: Y
766
+ children: U
598
767
  })
599
768
  ]
600
769
  })
601
770
  })
602
771
  ]
603
- }) : /* @__PURE__ */ k(u, {
772
+ }) : /* @__PURE__ */ C(f, {
604
773
  title: "Event Details",
605
- children: /* @__PURE__ */ k(re, {
606
- loading: H,
607
- error: U,
608
- onRetry: () => void W(),
774
+ children: /* @__PURE__ */ C(ae, {
775
+ loading: we,
776
+ error: Te,
777
+ onRetry: () => void I(),
609
778
  hasData: !1,
610
- children: /* @__PURE__ */ k(te, {
779
+ children: /* @__PURE__ */ C(m, {
611
780
  illustration: "empty-generic",
612
781
  title: "Event not found",
613
782
  description: "The event you're looking for doesn't exist or has been removed.",
614
- action: /* @__PURE__ */ A("button", {
615
- onClick: Q,
783
+ action: /* @__PURE__ */ w("button", {
784
+ onClick: X,
616
785
  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",
617
- children: [/* @__PURE__ */ k(h, { className: "h-4 w-4" }), "Back to Events"]
786
+ children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Back to Events"]
618
787
  })
619
788
  })
620
789
  })
621
790
  });
622
791
  };
623
- export { V as EventDetailsPage };
792
+ export { F as EventDetailsPage };
624
793
 
625
794
  //# sourceMappingURL=EventDetailsPage.js.map