@burdenoff/microfe-headshotmarketing 2026.1202.2 → 2026.1203.1

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