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