@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.
- package/dist/generated/wspace-operations.d.ts +598 -0
- package/dist/generated/wspace-operations.js +728 -443
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +281 -4
- package/dist/generated/wspace-types.js +21 -19
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/CrmRecordSelection.js +92 -47
- package/dist/headshotmarketing/components/CrmRecordSelection.js.map +1 -1
- package/dist/headshotmarketing/components/EntityTagPicker.d.ts +9 -0
- package/dist/headshotmarketing/components/EntityTagPicker.js +261 -0
- package/dist/headshotmarketing/components/EntityTagPicker.js.map +1 -0
- package/dist/headshotmarketing/components/index.d.ts +1 -0
- package/dist/headshotmarketing/components/index.js +2 -1
- package/dist/headshotmarketing/hooks/useEntityTags.d.ts +31 -0
- package/dist/headshotmarketing/hooks/useEntityTags.js +34 -0
- package/dist/headshotmarketing/hooks/useEntityTags.js.map +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +33 -26
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +182 -174
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +0 -8
- package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js +173 -164
- package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +0 -4
- package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +0 -4
- package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js +0 -4
- package/dist/headshotmarketing/pages/analytics/SocialAnalyticsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +28 -25
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +460 -275
- package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +163 -155
- package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +2 -0
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +136 -128
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentPage.js +1 -0
- package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ContactsPage.js +1 -0
- package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js +430 -253
- package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +0 -3
- package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +3 -6
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +0 -8
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- 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,
|
|
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
|
|
5
|
-
import { PageLayout as
|
|
6
|
-
import { StatCard as
|
|
7
|
-
import { EmptyState as
|
|
8
|
-
import { StatusBadge as
|
|
9
|
-
import { Modal as
|
|
10
|
-
import { QueryStateBoundary as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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
|
|
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
|
-
],
|
|
48
|
+
], j = [
|
|
48
49
|
{
|
|
49
|
-
value:
|
|
50
|
+
value: c.Webinar,
|
|
50
51
|
label: "Webinar"
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
|
-
value:
|
|
54
|
+
value: c.Conference,
|
|
54
55
|
label: "Conference"
|
|
55
56
|
},
|
|
56
57
|
{
|
|
57
|
-
value:
|
|
58
|
+
value: c.Workshop,
|
|
58
59
|
label: "Workshop"
|
|
59
60
|
},
|
|
60
61
|
{
|
|
61
|
-
value:
|
|
62
|
+
value: c.Meetup,
|
|
62
63
|
label: "Meetup"
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
|
-
value:
|
|
66
|
+
value: c.Tradeshow,
|
|
66
67
|
label: "Tradeshow"
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
|
-
value:
|
|
70
|
+
value: c.ProductLaunch,
|
|
70
71
|
label: "Product Launch"
|
|
71
72
|
},
|
|
72
73
|
{
|
|
73
|
-
value:
|
|
74
|
+
value: c.Networking,
|
|
74
75
|
label: "Networking"
|
|
75
76
|
},
|
|
76
77
|
{
|
|
77
|
-
value:
|
|
78
|
+
value: c.Other,
|
|
78
79
|
label: "Other"
|
|
79
80
|
}
|
|
80
81
|
];
|
|
81
|
-
function
|
|
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
|
|
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
|
|
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
|
|
115
|
-
let e =
|
|
116
|
-
skip: !
|
|
117
|
-
variables:
|
|
118
|
-
}), [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
-
|
|
144
|
+
W(null);
|
|
137
145
|
try {
|
|
138
|
-
await
|
|
146
|
+
await Ee({
|
|
139
147
|
variables: {
|
|
140
|
-
id:
|
|
148
|
+
id: F,
|
|
141
149
|
input: {
|
|
142
|
-
title:
|
|
143
|
-
description:
|
|
144
|
-
type:
|
|
145
|
-
status:
|
|
146
|
-
startDate: new Date(
|
|
147
|
-
endDate: new Date(
|
|
148
|
-
timezone:
|
|
149
|
-
location:
|
|
150
|
-
virtualUrl:
|
|
151
|
-
maxAttendees:
|
|
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:
|
|
155
|
-
}),
|
|
162
|
+
refetchQueries: k
|
|
163
|
+
}), B(!1), await I();
|
|
156
164
|
} catch (e) {
|
|
157
|
-
|
|
165
|
+
W(e instanceof Error ? e.message : "Failed to update event.");
|
|
158
166
|
}
|
|
159
167
|
}
|
|
160
168
|
}
|
|
161
|
-
},
|
|
162
|
-
if (
|
|
163
|
-
title: `Delete event "${
|
|
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
|
-
|
|
176
|
+
W(null);
|
|
169
177
|
try {
|
|
170
|
-
await
|
|
171
|
-
variables: { id:
|
|
172
|
-
refetchQueries:
|
|
178
|
+
await De({
|
|
179
|
+
variables: { id: F },
|
|
180
|
+
refetchQueries: k,
|
|
173
181
|
awaitRefetchQueries: !0
|
|
174
|
-
}),
|
|
182
|
+
}), X();
|
|
175
183
|
} catch (e) {
|
|
176
|
-
|
|
184
|
+
W(e instanceof Error ? e.message : "Failed to delete event.");
|
|
177
185
|
}
|
|
178
186
|
}
|
|
179
|
-
},
|
|
180
|
-
|
|
187
|
+
}, We = async (e) => {
|
|
188
|
+
W(null);
|
|
181
189
|
try {
|
|
182
|
-
await
|
|
190
|
+
await ke({ variables: { registrationId: e } }), await I();
|
|
183
191
|
} catch (e) {
|
|
184
|
-
|
|
192
|
+
W(e instanceof Error ? e.message : "Failed to check in attendee.");
|
|
185
193
|
}
|
|
186
|
-
},
|
|
187
|
-
|
|
194
|
+
}, Ge = async (e) => {
|
|
195
|
+
W(null);
|
|
188
196
|
try {
|
|
189
|
-
await
|
|
197
|
+
await je({ variables: { registrationId: e } }), await I();
|
|
190
198
|
} catch (e) {
|
|
191
|
-
|
|
199
|
+
W(e instanceof Error ? e.message : "Failed to cancel registration.");
|
|
192
200
|
}
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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__ */
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
onClick:
|
|
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__ */
|
|
252
|
+
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Back"]
|
|
205
253
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
onClick:
|
|
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__ */
|
|
258
|
+
children: [/* @__PURE__ */ C(pe, { className: "h-4 w-4" }), "Manage"]
|
|
211
259
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
-
onClick: () => void
|
|
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__ */
|
|
264
|
+
children: [/* @__PURE__ */ C(ye, { className: "h-4 w-4" }), "Delete"]
|
|
217
265
|
})
|
|
218
266
|
]
|
|
219
267
|
}),
|
|
220
268
|
children: [
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
|
|
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:
|
|
272
|
+
children: U
|
|
225
273
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
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__ */
|
|
277
|
+
/* @__PURE__ */ C(p, {
|
|
230
278
|
featured: !0,
|
|
231
279
|
title: "Registrations",
|
|
232
|
-
value:
|
|
233
|
-
icon: /* @__PURE__ */
|
|
280
|
+
value: l(Y.registrationCount),
|
|
281
|
+
icon: /* @__PURE__ */ C(ve, { className: "h-5 w-5" })
|
|
234
282
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ C(p, {
|
|
236
284
|
title: "Capacity",
|
|
237
|
-
value:
|
|
238
|
-
icon: /* @__PURE__ */
|
|
285
|
+
value: Y.maxAttendees ? l(Y.maxAttendees) : "—",
|
|
286
|
+
icon: /* @__PURE__ */ C(Se, { className: "h-5 w-5" })
|
|
239
287
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ C(p, {
|
|
241
289
|
title: "Fill Rate",
|
|
242
|
-
value:
|
|
243
|
-
icon: /* @__PURE__ */
|
|
290
|
+
value: Y.maxAttendees ? u(Je, 0) : "N/A",
|
|
291
|
+
icon: /* @__PURE__ */ C(me, { className: "h-5 w-5" })
|
|
244
292
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ C(p, {
|
|
246
294
|
title: "Speakers",
|
|
247
|
-
value:
|
|
248
|
-
icon: /* @__PURE__ */
|
|
295
|
+
value: Y.speakers.length,
|
|
296
|
+
icon: /* @__PURE__ */ C(xe, { className: "h-5 w-5" })
|
|
249
297
|
})
|
|
250
298
|
]
|
|
251
299
|
}) }),
|
|
252
|
-
|
|
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__ */
|
|
255
|
-
src:
|
|
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__ */
|
|
315
|
+
/* @__PURE__ */ w("div", {
|
|
261
316
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
319
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
265
320
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
266
321
|
children: "Schedule & Location"
|
|
267
|
-
}), /* @__PURE__ */
|
|
322
|
+
}), /* @__PURE__ */ w("div", {
|
|
268
323
|
className: "space-y-3 text-sm",
|
|
269
324
|
children: [
|
|
270
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ w("div", {
|
|
271
326
|
className: "flex items-start gap-2 text-text-secondary",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
275
|
-
}), /* @__PURE__ */
|
|
329
|
+
children: P(Y.startDate, Y.timezone)
|
|
330
|
+
}), /* @__PURE__ */ w("p", {
|
|
276
331
|
className: "text-xs",
|
|
277
332
|
children: [
|
|
278
333
|
"to ",
|
|
279
|
-
|
|
280
|
-
|
|
334
|
+
P(Y.endDate, Y.timezone),
|
|
335
|
+
Y.timezone ? ` (${Y.timezone})` : ""
|
|
281
336
|
]
|
|
282
337
|
})] })]
|
|
283
338
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ w("div", {
|
|
285
340
|
className: "flex items-center gap-2 text-text-secondary",
|
|
286
|
-
children: [
|
|
287
|
-
href:
|
|
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: [
|
|
292
|
-
}) :
|
|
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
|
-
|
|
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__ */
|
|
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__ */
|
|
358
|
+
}), /* @__PURE__ */ w("div", {
|
|
304
359
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
305
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
308
|
-
}), /* @__PURE__ */
|
|
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:
|
|
365
|
+
children: j.find((e) => e.value === Y.type)?.label ?? Y.type
|
|
311
366
|
})]
|
|
312
367
|
})]
|
|
313
368
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ w("div", {
|
|
315
370
|
className: "rounded-lg border border-border-seam bg-gloss-card p-5 shadow-pop",
|
|
316
|
-
children: [/* @__PURE__ */
|
|
371
|
+
children: [/* @__PURE__ */ C("h4", {
|
|
317
372
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
318
373
|
children: "Speakers"
|
|
319
|
-
}),
|
|
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__ */
|
|
377
|
+
}) : /* @__PURE__ */ C("div", {
|
|
323
378
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
324
|
-
children:
|
|
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__ */
|
|
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__ */
|
|
384
|
+
}), /* @__PURE__ */ w("div", {
|
|
330
385
|
className: "min-w-0",
|
|
331
386
|
children: [
|
|
332
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
528
|
+
children: [/* @__PURE__ */ w("h4", {
|
|
352
529
|
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
353
530
|
children: [
|
|
354
531
|
"Registrations (",
|
|
355
|
-
|
|
532
|
+
Y.registrations.length,
|
|
356
533
|
")"
|
|
357
534
|
]
|
|
358
|
-
}),
|
|
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__ */
|
|
538
|
+
}) : /* @__PURE__ */ C("div", {
|
|
362
539
|
className: "overflow-x-auto",
|
|
363
|
-
children: /* @__PURE__ */
|
|
540
|
+
children: /* @__PURE__ */ w("table", {
|
|
364
541
|
className: "w-full text-sm",
|
|
365
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
545
|
+
/* @__PURE__ */ C("th", {
|
|
369
546
|
className: "py-2 pe-4 font-medium",
|
|
370
547
|
children: "Attendee"
|
|
371
548
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ C("th", {
|
|
373
550
|
className: "py-2 pe-4 font-medium",
|
|
374
551
|
children: "Company"
|
|
375
552
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ C("th", {
|
|
377
554
|
className: "py-2 pe-4 font-medium",
|
|
378
555
|
children: "Status"
|
|
379
556
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ C("th", {
|
|
381
558
|
className: "py-2 pe-4 font-medium",
|
|
382
559
|
children: "Actions"
|
|
383
560
|
})
|
|
384
561
|
]
|
|
385
|
-
}) }), /* @__PURE__ */
|
|
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__ */
|
|
564
|
+
return /* @__PURE__ */ w("tr", {
|
|
388
565
|
className: "border-b border-border-subtle/60 last:border-0",
|
|
389
566
|
children: [
|
|
390
|
-
/* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ w("td", {
|
|
391
568
|
className: "py-2 pe-4",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
569
|
+
children: [/* @__PURE__ */ C("p", {
|
|
393
570
|
className: "font-medium text-text-primary",
|
|
394
571
|
children: e.attendeeName
|
|
395
|
-
}), /* @__PURE__ */
|
|
572
|
+
}), /* @__PURE__ */ C("p", {
|
|
396
573
|
className: "text-xs text-text-secondary",
|
|
397
574
|
children: e.attendeeEmail
|
|
398
575
|
})]
|
|
399
576
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ C("td", {
|
|
401
578
|
className: "py-2 pe-4 text-text-secondary",
|
|
402
579
|
children: e.attendeeCompany || "—"
|
|
403
580
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ C("td", {
|
|
405
582
|
className: "py-2 pe-4",
|
|
406
|
-
children: /* @__PURE__ */
|
|
583
|
+
children: /* @__PURE__ */ C(h, { status: t })
|
|
407
584
|
}),
|
|
408
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ C("td", {
|
|
409
586
|
className: "py-2 pe-4",
|
|
410
|
-
children: /* @__PURE__ */
|
|
587
|
+
children: /* @__PURE__ */ w("div", {
|
|
411
588
|
className: "flex items-center gap-2",
|
|
412
|
-
children: [n && /* @__PURE__ */
|
|
413
|
-
onClick: () => void
|
|
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__ */
|
|
417
|
-
}), r && /* @__PURE__ */
|
|
418
|
-
onClick: () => void
|
|
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__ */
|
|
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
|
-
|
|
432
|
-
open:
|
|
433
|
-
onClose: () =>
|
|
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__ */
|
|
438
|
-
onClick: () =>
|
|
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__ */
|
|
442
|
-
onClick: () => void
|
|
443
|
-
disabled:
|
|
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:
|
|
622
|
+
children: L ? "Saving..." : "Save Changes"
|
|
446
623
|
})] }),
|
|
447
|
-
children: /* @__PURE__ */
|
|
624
|
+
children: /* @__PURE__ */ w("div", {
|
|
448
625
|
className: "space-y-4",
|
|
449
626
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
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__ */
|
|
630
|
+
}), /* @__PURE__ */ C("input", {
|
|
454
631
|
type: "text",
|
|
455
|
-
value:
|
|
456
|
-
onChange: (e) =>
|
|
457
|
-
...
|
|
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__ */
|
|
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__ */
|
|
642
|
+
}), /* @__PURE__ */ C("textarea", {
|
|
466
643
|
rows: 3,
|
|
467
|
-
value:
|
|
468
|
-
onChange: (e) =>
|
|
469
|
-
...
|
|
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__ */
|
|
651
|
+
/* @__PURE__ */ w("div", {
|
|
475
652
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
476
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
480
|
-
value:
|
|
481
|
-
onChange: (e) =>
|
|
482
|
-
...
|
|
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:
|
|
663
|
+
children: j.map((e) => /* @__PURE__ */ C("option", {
|
|
487
664
|
value: e.value,
|
|
488
665
|
children: e.label
|
|
489
666
|
}, e.value))
|
|
490
|
-
})] }), /* @__PURE__ */
|
|
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__ */
|
|
494
|
-
value:
|
|
495
|
-
onChange: (e) =>
|
|
496
|
-
...
|
|
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:
|
|
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__ */
|
|
683
|
+
/* @__PURE__ */ w("div", {
|
|
507
684
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
508
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
688
|
+
}), /* @__PURE__ */ C("input", {
|
|
512
689
|
type: "datetime-local",
|
|
513
|
-
value:
|
|
514
|
-
onChange: (e) =>
|
|
515
|
-
...
|
|
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__ */
|
|
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__ */
|
|
699
|
+
}), /* @__PURE__ */ C("input", {
|
|
523
700
|
type: "datetime-local",
|
|
524
|
-
value:
|
|
525
|
-
onChange: (e) =>
|
|
526
|
-
...
|
|
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__ */
|
|
709
|
+
/* @__PURE__ */ w("div", {
|
|
533
710
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
534
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
714
|
+
}), /* @__PURE__ */ C("input", {
|
|
538
715
|
type: "text",
|
|
539
|
-
value:
|
|
540
|
-
onChange: (e) =>
|
|
541
|
-
...
|
|
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__ */
|
|
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__ */
|
|
725
|
+
}), /* @__PURE__ */ C("input", {
|
|
549
726
|
type: "url",
|
|
550
|
-
value:
|
|
551
|
-
onChange: (e) =>
|
|
552
|
-
...
|
|
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__ */
|
|
736
|
+
/* @__PURE__ */ w("div", {
|
|
560
737
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
561
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
741
|
+
}), /* @__PURE__ */ C("input", {
|
|
565
742
|
type: "text",
|
|
566
|
-
value:
|
|
567
|
-
onChange: (e) =>
|
|
568
|
-
...
|
|
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__ */
|
|
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__ */
|
|
753
|
+
}), /* @__PURE__ */ C("input", {
|
|
577
754
|
type: "number",
|
|
578
755
|
min: 0,
|
|
579
|
-
value:
|
|
580
|
-
onChange: (e) =>
|
|
581
|
-
...
|
|
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
|
-
|
|
764
|
+
U && /* @__PURE__ */ C("p", {
|
|
588
765
|
className: "text-sm text-status-error-text",
|
|
589
|
-
children:
|
|
766
|
+
children: U
|
|
590
767
|
})
|
|
591
768
|
]
|
|
592
769
|
})
|
|
593
770
|
})
|
|
594
771
|
]
|
|
595
|
-
}) : /* @__PURE__ */
|
|
772
|
+
}) : /* @__PURE__ */ C(f, {
|
|
596
773
|
title: "Event Details",
|
|
597
|
-
children: /* @__PURE__ */
|
|
598
|
-
loading:
|
|
599
|
-
error:
|
|
600
|
-
onRetry: () => void
|
|
774
|
+
children: /* @__PURE__ */ C(ae, {
|
|
775
|
+
loading: we,
|
|
776
|
+
error: Te,
|
|
777
|
+
onRetry: () => void I(),
|
|
601
778
|
hasData: !1,
|
|
602
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
607
|
-
onClick:
|
|
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__ */
|
|
786
|
+
children: [/* @__PURE__ */ C(_, { className: "h-4 w-4" }), "Back to Events"]
|
|
610
787
|
})
|
|
611
788
|
})
|
|
612
789
|
})
|
|
613
790
|
});
|
|
614
791
|
};
|
|
615
|
-
export {
|
|
792
|
+
export { F as EventDetailsPage };
|
|
616
793
|
|
|
617
794
|
//# sourceMappingURL=EventDetailsPage.js.map
|